Browse files

Merge pull request #4127 from BigNoid/fix_empty_playerart

Fix empty player art when playing songs from favourites...
  • Loading branch information...
2 parents 73371a9 + 72046e7 commit e542535c3be04d71e2651b68db22b12381e69f9b @jmarshallnz jmarshallnz committed Feb 12, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 xbmc/filesystem/FavouritesDirectory.cpp
View
3 xbmc/filesystem/FavouritesDirectory.cpp
@@ -29,6 +29,7 @@
#include "utils/URIUtils.h"
#include "settings/AdvancedSettings.h"
#include "video/VideoInfoTag.h"
+#include "music/tags/MusicInfoTag.h"
#include "URL.h"
namespace XFILE
@@ -201,6 +202,8 @@ CStdString CFavouritesDirectory::GetExecutePath(const CFileItem &item, const std
{
if (item.IsVideoDb() && item.HasVideoInfoTag())
execute = StringUtils::Format("PlayMedia(%s)", StringUtils::Paramify(item.GetVideoInfoTag()->m_strFileNameAndPath).c_str());
+ else if (item.IsMusicDb() && item.HasMusicInfoTag())
+ execute = StringUtils::Format("PlayMedia(%s)", StringUtils::Paramify(item.GetMusicInfoTag()->GetURL()).c_str());
else
execute = StringUtils::Format("PlayMedia(%s)", StringUtils::Paramify(item.GetPath()).c_str());
}

0 comments on commit e542535

Please sign in to comment.