mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +00:00
Merge pull request #886 from sikmir/forvo-order-rate-desc
Forvo: order pronunciations by rate, high rated first
This commit is contained in:
commit
9f617425c8
9
forvo.cc
9
forvo.cc
|
@ -168,8 +168,13 @@ void ForvoArticleRequest::addQuery( QNetworkAccessManager & mgr,
|
||||||
key = apiKey;
|
key = apiKey;
|
||||||
|
|
||||||
QUrl reqUrl = QUrl::fromEncoded(
|
QUrl reqUrl = QUrl::fromEncoded(
|
||||||
QString( "http://apifree.forvo.com/key/" + key + "/format/xml/action/word-pronunciations/word/" +
|
QString( "http://apifree.forvo.com"
|
||||||
QString::fromLatin1( QUrl::toPercentEncoding( gd::toQString( str ) ) ) + "/language/" + languageCode
|
"/key/" + key +
|
||||||
|
"/action/word-pronunciations"
|
||||||
|
"/format/xml"
|
||||||
|
"/word/" + QLatin1String( QUrl::toPercentEncoding( gd::toQString( str ) ) ) +
|
||||||
|
"/language/" + languageCode +
|
||||||
|
"/order/rate-desc"
|
||||||
).toUtf8() );
|
).toUtf8() );
|
||||||
|
|
||||||
// DPRINTF( "req: %s\n", reqUrl.toEncoded().data() );
|
// DPRINTF( "req: %s\n", reqUrl.toEncoded().data() );
|
||||||
|
|
Loading…
Reference in a new issue