Skip to content
This repository
Browse code

[UPnP] fix watched overlay when playcount is unknown

  • Loading branch information...
commit 0ff0d2eeea408d80715d4f0593a33934ecc3a29a 1 parent 32a74fa
Alasdair Campbell authored October 11, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/filesystem/UPnPDirectory.cpp
2  xbmc/filesystem/UPnPDirectory.cpp
@@ -492,7 +492,7 @@ CUPnPDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items)
492 492
                     watched = (episodes && played == episodes);
493 493
                 }
494 494
                 else if (type == "episode" || type == "movie")
495  
-                    watched = played;
  495
+                    watched = (played > 0);
496 496
                 pItem->SetOverlayImage(CGUIListItem::ICON_OVERLAY_UNWATCHED, watched);
497 497
             }
498 498
             items.Add(pItem);

0 notes on commit 0ff0d2e

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