const auto thumbs = obj["authorThumbnails"].toArray();
int maxFoundWidth = 0;
for (const auto &thumbObj : thumbs) {
- QString url = thumbObj["url"].toString();
int width = thumbObj["width"].toInt();
if (width > maxFoundWidth) {
maxFoundWidth = width;
+ QString url = thumbObj["url"].toString();
thumbnailUrl = url;
}
}