From 43375f8ff8e476b1f08e5b119204c34bb9c673c1 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Fri, 1 Sep 2017 12:30:29 +0300 Subject: [PATCH] Forvo: order pronunciations by rate, high rated first --- forvo.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/forvo.cc b/forvo.cc index 78c99998..08db6f94 100644 --- a/forvo.cc +++ b/forvo.cc @@ -168,8 +168,13 @@ void ForvoArticleRequest::addQuery( QNetworkAccessManager & mgr, key = apiKey; QUrl reqUrl = QUrl::fromEncoded( - QString( "http://apifree.forvo.com/key/" + key + "/format/xml/action/word-pronunciations/word/" + - QString::fromLatin1( QUrl::toPercentEncoding( gd::toQString( str ) ) ) + "/language/" + languageCode + QString( "http://apifree.forvo.com" + "/key/" + key + + "/action/word-pronunciations" + "/format/xml" + "/word/" + QLatin1String( QUrl::toPercentEncoding( gd::toQString( str ) ) ) + + "/language/" + languageCode + + "/order/rate-desc" ).toUtf8() ); // DPRINTF( "req: %s\n", reqUrl.toEncoded().data() );