Skip to content

Commit

Permalink
FIX: adjust "lastplayed" when stacking tv shows
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Oct 19, 2012
1 parent a8ac7bd commit b378d9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/video/VideoDatabase.cpp
Original file line number Diff line number Diff line change
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("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");
Expand Down

0 comments on commit b378d9c

Please sign in to comment.