50 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'MythMetadataResults'");
67 if (coverartfile.isEmpty())
74 if (coverartfile.isEmpty())
84 if (!coverartfile.isEmpty())
89 button->SetImage(dlfile);
94 QVariant::fromValue<uint>(pos));
98 button->SetTextFromMap(metadataMap);
99 button->SetData(QVariant::fromValue<uint>(i));
112 QString cache = QString(
"%1/cache/metadata-thumbcache")
114 QDir cacheDir(cache);
115 QStringList thumbs = cacheDir.entryList(QDir::Files);
117 for (
const auto & thumb : std::ranges::reverse_view(std::as_const(thumbs)))
119 QString
filename = QString(
"%1/%2").arg(cache, thumb);
121 QDateTime lastmod = fi.lastModified();
124 LOG(VB_GENERAL, LOG_DEBUG, QString(
"Deleting old cache file %1")
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
RefCountHandler< T > takeAtAndDecr(int i)
Removes the item at index position i and returns it.
T * takeFirst(void)
Removes the first item in the list and returns it.
static const Type kEventType
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
QHash< QString, QString > InfoMap
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)