Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1645 from koying/tvshowstacking

FIX: adjust "lastplayed" when stacking tv shows
  • Loading branch information...
commit a350439c59fd622e350d29100d4212d49b3f6cfc 2 parents a1cac4a + b378d9c
Arne Morten Kvarving authored
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");
Please sign in to comment.
Something went wrong with that request. Please try again.