Skip to content
Browse files

FIX: adjust "lastplayed" when stacking tv shows

  • Loading branch information...
1 parent a8ac7bd commit b378d9cecc03f9d1fd59e1afbc2b5baf08a2c245 @koying committed Oct 19, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/video/VideoDatabase.cpp
View
4 xbmc/video/VideoDatabase.cpp
@@ -5993,6 +5993,10 @@ void CVideoDatabase::Stack(CFileItemList& items, VIDEODB_CONTENT_TYPE type, bool
pItem->IncrementProperty("watchedepisodes", (int)jItem->GetProperty("watchedepisodes").asInteger());
pItem->IncrementProperty("unwatchedepisodes", (int)jItem->GetProperty("unwatchedepisodes").asInteger());
+ // adjust lastplayed
+ if (jItem->GetVideoInfoTag()->m_lastPlayed > pItem->GetVideoInfoTag()->m_lastPlayed)
+ pItem->GetVideoInfoTag()->m_lastPlayed = jItem->GetVideoInfoTag()->m_lastPlayed;
+
// check for fanart if not already set
if (strFanArt.IsEmpty())
strFanArt = jItem->GetArt("fanart");

0 comments on commit b378d9c

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