+
+ QString thumbString = query.value(7).toString();
+ if (thumbString.startsWith('[')) {
+ const auto thumbs = QJsonDocument::fromJson(thumbString.toUtf8()).array();
+ for (const auto &t : thumbs) {
+ video->addThumb(t["width"].toInt(), t["height"].toInt(), t["url"].toString());
+ }
+ } else {
+ // assume it's a URL
+ video->addThumb(0, 0, thumbString);
+ }
+