Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

Commit 2661aa3

Browse files
DaveTBlakekoying
authored andcommitted
Fix song reported on playback of songs from cuesheet
1 parent 9f9e102 commit 2661aa3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

xbmc/FileItem.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,12 @@ void CFileItem::SetFromSong(const CSong &song)
14801480
{
14811481
if (!song.strTitle.empty())
14821482
SetLabel(song.strTitle);
1483-
if (!song.strFileName.empty())
1483+
if (song.idSong > 0)
1484+
{
1485+
std::string strExt = URIUtils::GetExtension(song.strFileName);
1486+
m_strPath = StringUtils::Format("musicdb://songs/%i%s", song.idSong, strExt.c_str());
1487+
}
1488+
else if (!song.strFileName.empty())
14841489
m_strPath = song.strFileName;
14851490
GetMusicInfoTag()->SetSong(song);
14861491
m_lStartOffset = song.iStartOffset;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.32.4
1+
6.32.5

0 commit comments

Comments
 (0)