Skip to content
Browse files

[UPnP] fix watched overlay when playcount is unknown

  • Loading branch information...
1 parent 32a74fa commit 0ff0d2eeea408d80715d4f0593a33934ecc3a29a @alcoheca alcoheca committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/filesystem/UPnPDirectory.cpp
View
2 xbmc/filesystem/UPnPDirectory.cpp
@@ -492,7 +492,7 @@ CUPnPDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items)
watched = (episodes && played == episodes);
}
else if (type == "episode" || type == "movie")
- watched = played;
+ watched = (played > 0);
pItem->SetOverlayImage(CGUIListItem::ICON_OVERLAY_UNWATCHED, watched);
}
items.Add(pItem);

0 comments on commit 0ff0d2e

Please sign in to comment.
Something went wrong with that request. Please try again.