diff --git a/dataengines/potd/bingprovider.cpp b/dataengines/potd/bingprovider.cpp --- a/dataengines/potd/bingprovider.cpp +++ b/dataengines/potd/bingprovider.cpp @@ -1,5 +1,6 @@ /* * Copyright 2017 Weng Xuetian + * Copyright 2018 Carmen Bianca Bakker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -63,10 +64,11 @@ if (!imageObj.isObject()) { break; } - auto url = imageObj.toObject().value(QLatin1String("url")); - if (!url.isString() || url.toString().isEmpty()) { + auto urlbase = imageObj.toObject().value(QLatin1String("urlbase")); + if (!urlbase.isString() || urlbase.toString().isEmpty()) { break; } + auto url = urlbase + "_1920x1080.jpg"; QUrl picUrl(QStringLiteral("https://www.bing.com/%1").arg(url.toString())); KIO::StoredTransferJob* imageJob = KIO::storedGet(picUrl, KIO::NoReload, KIO::HideProgressInfo); connect(imageJob, &KIO::StoredTransferJob::finished, this, &BingProvider::imageRequestFinished);