Skip to content

Commit

Permalink
Merge pull request #13585 from DaveTBlake/IsSamePath
Browse files Browse the repository at this point in the history
[Music]Fix FileItem::IsSamePath for albums and artists
  • Loading branch information
DaveTBlake committed Feb 28, 2018
2 parents 23ad481 + a2d469e commit dd3caa3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xbmc/FileItem.cpp
Expand Up @@ -1506,6 +1506,12 @@ bool CFileItem::IsSamePath(const CFileItem *item) const
return (item->GetProperty("item_start") == GetProperty("item_start"));
return true;
}
if (HasMusicInfoTag() && item->HasMusicInfoTag())
{
if (GetMusicInfoTag()->GetDatabaseId() != -1 && item->GetMusicInfoTag()->GetDatabaseId() != -1)
return ((GetMusicInfoTag()->GetDatabaseId() == item->GetMusicInfoTag()->GetDatabaseId()) &&
(GetMusicInfoTag()->GetType() == item->GetMusicInfoTag()->GetType()));
}
if (HasVideoInfoTag() && item->HasVideoInfoTag())
{
if (GetVideoInfoTag()->m_iDbId != -1 && item->GetVideoInfoTag()->m_iDbId != -1)
Expand Down

0 comments on commit dd3caa3

Please sign in to comment.