When marking as played, need to check local path too

This commit is contained in:
craig.p.drummond
2013-10-01 18:43:27 +00:00
parent 89015ea0dd
commit 086a651068

View File

@@ -633,7 +633,7 @@ void PodcastService::currentMpdSong(const Song &s)
MusicLibraryItemPodcast *podcast=static_cast<MusicLibraryItemPodcast *>(p);
foreach (MusicLibraryItem *i, podcast->childItems()) {
MusicLibraryItemSong *song=static_cast<MusicLibraryItemSong *>(i);
if (song->file()==s.file) {
if (song->file()==s.file || song->song().podcastLocalPath()==s.file) {
if (!song->song().hasBeenPlayed()) {
podcast->setPlayed(song);
emitDataChanged(createIndex(song));