Skip to content

Commit

Permalink
Merge pull request #1645 from koying/tvshowstacking
Browse files Browse the repository at this point in the history
FIX: adjust "lastplayed" when stacking tv shows
  • Loading branch information
Arne Morten Kvarving committed Oct 19, 2012
2 parents a1cac4a + b378d9c commit a350439
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/video/VideoDatabase.cpp
Expand Up @@ -5993,6 +5993,10 @@ void CVideoDatabase::Stack(CFileItemList& items, VIDEODB_CONTENT_TYPE type, bool
pItem->IncrementProperty("watchedepisodes", (int)jItem->GetProperty("watchedepisodes").asInteger()); pItem->IncrementProperty("watchedepisodes", (int)jItem->GetProperty("watchedepisodes").asInteger());
pItem->IncrementProperty("unwatchedepisodes", (int)jItem->GetProperty("unwatchedepisodes").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 // check for fanart if not already set
if (strFanArt.IsEmpty()) if (strFanArt.IsEmpty())
strFanArt = jItem->GetArt("fanart"); strFanArt = jItem->GetArt("fanart");
Expand Down

0 comments on commit a350439

Please sign in to comment.