Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix musicvideo art in the music library

  • Loading branch information...
commit c1257cec59aa7f9098214506535a42ea420d597f 1 parent 46e045e
Jonathan Marshall authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 xbmc/music/MusicThumbLoader.cpp
View
8 xbmc/music/MusicThumbLoader.cpp
@@ -25,6 +25,7 @@
#include "music/tags/MusicInfoTagLoaderFactory.h"
#include "music/infoscanner/MusicInfoScanner.h"
#include "music/Artist.h"
+#include "video/VideoThumbLoader.h"
using namespace std;
using namespace MUSIC_INFO;
@@ -74,6 +75,13 @@ bool CMusicThumbLoader::LoadItem(CFileItem* pItem)
return true; // no fallback
}
+ if (pItem->HasVideoInfoTag() && pItem->GetArt().empty())
+ { // music video
+ CVideoThumbLoader loader;
+ if (loader.LoadItem(pItem))
+ return true;
+ }
+
if (!pItem->HasArt("fanart"))
{
if (pItem->HasMusicInfoTag() && !pItem->GetMusicInfoTag()->GetArtist().empty())
Please sign in to comment.
Something went wrong with that request. Please try again.