[Mediaportal-svn] r22126 - trunk/TvEngine3/TVLibrary/TvPlugin/TvPlugin
Turn your PC into a very advanced MediaCenter/HTPC
Brought to you by:
gereonheitmann,
morpheus_xx
From: <rt...@de...> - 2009-03-30 19:29:35
|
Author: rtv_sf Date: 2009-03-30 19:29:21 +0000 (Mon, 30 Mar 2009) New Revision: 22126 Modified: trunk/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs Log: Fixes for mantis #1935 (RecordedTv needs a cleanup) - folder items now show the information of the last subitem (the most recent recording) - this will ensure proper sorting. Modified: trunk/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs =================================================================== --- trunk/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs 2009-03-30 17:03:29 UTC (rev 22125) +++ trunk/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvRecorded.cs 2009-03-30 19:29:21 UTC (rev 22126) @@ -823,6 +823,13 @@ if (merge) { // NO thumbnails for folders please so we can distinguish between single files and folders + if (listRec.StartTime < rec.StartTime) + { + // Make sure that the folder items shows the information of the most recent subitem + // e.g. the Start time might be relevant for sorting the folders correctly. + item.TVTag = (BuildItemFromRecording(rec)).TVTag; + } + item.IsFolder = true; Utils.SetDefaultIcons(item); item.ThumbnailImage = item.IconImageBig; |