50 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'MythMetadataResults'");
67 if (coverartfile.isEmpty())
74 if (coverartfile.isEmpty())
84 if (!coverartfile.isEmpty())
90 button->SetImage(dlfile);
96 QVariant::fromValue<uint>(pos));
100 button->SetTextFromMap(metadataMap);
101 button->SetData(QVariant::fromValue<uint>(i));
114 QString cache = QString(
"%1/cache/metadata-thumbcache")
116 QDir cacheDir(cache);
117 QStringList thumbs = cacheDir.entryList(QDir::Files);
119 for (
const auto & thumb : std::ranges::reverse_view(std::as_const(thumbs)))
121 QString
filename = QString(
"%1/%2").arg(cache, thumb);
123 QDateTime lastmod = fi.lastModified();
126 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)