From b4395612c2944a87742a2de851aaf18d4d2000d5 2017-09-29 08:29:57 From: Alexandre Leroux Date: 2017-09-29 08:29:57 Subject: [PATCH] Changes url --- diff --git a/plugins/amda/src/AmdaProvider.cpp b/plugins/amda/src/AmdaProvider.cpp index 2dafbbc..f10071c 100644 --- a/plugins/amda/src/AmdaProvider.cpp +++ b/plugins/amda/src/AmdaProvider.cpp @@ -21,9 +21,9 @@ namespace { /// - %1: start date /// - %2: end date /// - %3: parameter id -/// Old url: http://amda.irap.omp.eu/php/rest/ +/// AMDA V2: http://amdatest.irap.omp.eu/php/rest/ const auto AMDA_URL_FORMAT = QStringLiteral( - "http://amdatest.irap.omp.eu/php/rest/" + "http://amda.irap.omp.eu/php/rest/" "getParameter.php?startTime=%1&stopTime=%2¶meterID=%3&outputFormat=ASCII&" "timeFormat=ISO8601&gzip=0"); @@ -218,7 +218,8 @@ void AmdaProvider::retrieveData(QUuid token, const SqpRange &dateTime, const QVa // Don't do anything if the reply was abort if (reply->error() == QNetworkReply::NoError) { - auto downloadFileUrl = QUrl{QString{reply->readAll()}.trimmed()}; + // AMDA v2: auto downloadFileUrl = QUrl{QString{reply->readAll()}.trimmed()}; + auto downloadFileUrl = QUrl{QString{reply->readAll()}}; qCInfo(LOG_AmdaProvider()) << tr("TORM AmdaProvider::retrieveData downloadFileUrl:") << downloadFileUrl;