diff --git a/host/mprisplugin.cpp b/host/mprisplugin.cpp --- a/host/mprisplugin.cpp +++ b/host/mprisplugin.cpp @@ -38,6 +38,8 @@ static const QString s_serviceName = QStringLiteral("org.mpris.MediaPlayer2.plasma-browser-integration"); +static const int s_maxThumbnailSize = 512; + MPrisPlugin::MPrisPlugin(QObject *parent) : AbstractBrowserPlugin(QStringLiteral("mpris"), 1, parent) , m_root(new MPrisRoot(this)) @@ -488,7 +490,9 @@ continue; } - if (!biggest.isValid() || (actualSize.width() >= biggest.width() && actualSize.height() >= biggest.height())) { + if (!biggest.isValid() || + (actualSize.width() >= biggest.width() && actualSize.height() >= biggest.height() + && actualSize.width() <= s_maxThumbnailSize && actualSize.height() <= s_maxThumbnailSize)) { artworkUrl = url; biggest = actualSize; }