[Approved] Better episode handeling/display + #0002325 (1 Viewer)

hkjensen

MP Donator
  • Premium Supporter
  • June 11, 2007
    165
    65
    Copenhagen
    Home Country
    Denmark Denmark
    Hi all

    One of the things i was missing in MediaPortal is better handling of episodes:

    - An options to see witch episode of a show is running in the TV-Guide and Mini TV-Guide
    - Display of episode info in Recordings
    - Display of episode info in upcomming episodes
    - Save episode info in xml-tag (import recordings into database)
    - Group episodes of show when show was not recorded as series
    Useful if normal series handling can't record shows
    ex:
    17:00 NCIS episode 2
    18:00 NCIS episode 3
    20:00 NCIS episode 4
    21:00 NCIS episode 5
    when recorded they should be placed in folder NCIS
    NCIS
    NCIS (2)
    NCIS (3)
    NCIS (4)
    NCIS (5)
    I have made a patch witch add the above features:
    Episode info can be:
    - No info (normal MP behavior)
    - EpisodeName
    - EpisodeNumber (seriesNum+episodeNum+episodePart)
    - EpisodeNumber and EpisodeName
    and is set in MediaPortal Configuration

    -It is not bound to any skin (screendump could also be in any other skin)

    The fields seriesNum,episodeNum and episodePart is added to the table recordings
    EpisodeName, seriesNum, episodeNum and episodePart is written to the xml-file (preserve episode info, if recordings has to be imported again)

    Check previously recorded programs by episodeNumber or episodeName (extension of mantis 0002311: TV-Server should not record [series] schedules that are already present - MediaPortal Bugtracker )
    Option is set in TV-configuration


    Se attached screendumps

    If any needs a compiled version send me a memo :)

    New version:
    - Added episodeinfo to TVHome and TVOSD.
    - Opdated TVGuideBase
    - TV-Config - Recordings: Episode Key disabled if 'Check Episode' is not checked
    - Added the following GUI property
    -- #TV.View.subtitle = episodeName
    -- #TV.View.episode = formated (seriesNum,episodeNum,episodePart) ex.: 1.1/2.1/2 or 1/13 if only episodeNum is defined
    -- #TV.Next.subtitle = episodeName
    -- #TV.Next.episode = formated (seriesNum,episodeNum,episodePart)
    -- #TV.Guide.SubTitle= episodeName
    -- #TV.Guide.Episode = formated (seriesNum,episodeNum,episodePart)
    Included patch for 0002325: [TvServer] Matroska tags (for Recordings) do not contain all needed information - new.

    2009.06.08:
    Fixed wrong date in xml-file, used program start and end date and not recording start and end date, difference is pre recording and post recording time is include in recording start and end date.​
    2009.06.10
    Fixed reading dates from xml-file.​
    2009.07.27
    Added episode info to TvHome and TvOSD, cleanup GUI property only subtitle and episode​
    2009.07.28
    Separated MediaPortal dependency in TvServer​
     

    Attachments

    • tg-guide-episode.PNG
      tg-guide-episode.PNG
      95.2 KB
    • tv-schedules.PNG
      tv-schedules.PNG
      77.6 KB
    • tv-recordings-upcomming-episodes.PNG
      tv-recordings-upcomming-episodes.PNG
      81.4 KB
    • tv-recordings-single-grouped.PNG
      tv-recordings-single-grouped.PNG
      77.5 KB
    • tv-recordings-single.PNG
      tv-recordings-single.PNG
      77.7 KB
    • tv-mini-guide-episode.PNG
      tv-mini-guide-episode.PNG
      49.6 KB
    • tv-config-server.PNG
      tv-config-server.PNG
      35.6 KB
    • tv-config.PNG
      tv-config.PNG
      32.8 KB
    • tg-guide-episode-b3w.PNG
      tg-guide-episode-b3w.PNG
      114.3 KB
    • MP-episodes-23209.patch
      30.7 KB
    • MP-episodes-23209_3.patch
      30.7 KB

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    165
    65
    Copenhagen
    Home Country
    Denmark Denmark
    Compiled version

    Installation:
    TV-Server:
    1. Extract Setup-TvEngine-svn-1.0.3.23141.rar
    2. run Setup-TvEngine-svn-1.0.3.23141.exe to install TV-Server and/or TV-Plugin
    3. In TV-Server configuration update recordings - episode info
    MediaPortal
    1. Extract Configuration
    2. Copy Configuration to installation dir for Mediaportal, overwriting existing Configuration dir
    3. Run Configurtaion and under TV-Plugin set the wanted episode info
     

    Spragleknas

    Moderator
  • Team MediaPortal
  • December 21, 2005
    9,474
    1,822
    Located
    Home Country
    Norway Norway
    I'll move this to the "Submit patches"-section.

    Please let me know if this somehow was not your intention.
     

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    165
    65
    Copenhagen
    Home Country
    Denmark Denmark
    0002325: [TvServer] Matroska tags (for Recordings) do not contain all needed informat

    Hi was not sure witch sub-forum to post til patch ;-)

    Thanks

    Updated first post with patch to

    0002325: [TvServer] Matroska tags (for Recordings) do not contain all needed information - new.

    If StartTime and StopTime can not be read from xml-file (old recording), information is retrieved by
    GetRecordingStartTime and GetRecordingEndTime
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Hi! Thanks for your patch - I'll look at it soon!
     

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    165
    65
    Copenhagen
    Home Country
    Denmark Denmark
    New patch uploaded

    Tested and fixed recording dates in xml-file, stopTime changed to endTime
     

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    165
    65
    Copenhagen
    Home Country
    Denmark Denmark
    Episodeinfor added to TvHome and TvOSD
    Clean up GUI Properties in TvHome, TvOSD and TvGuidebase :
    Subtitle is equivalent to episodeName
    Episode is a formated string of seriesNum, episodeNum and episodePart, if a episode property isn't defined it is not displayed
    ex: seriesNum=1/3 episodeNum = 2/13, episodePart ="" -> Episode = 1/3.2/13
    ex: seriesNum="" episodeNum = 13, episodePart =1 -> Episode = 13.1
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Patch (with only little modifications due to recent updates) added to SVN. Thank you!
     

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    165
    65
    Copenhagen
    Home Country
    Denmark Denmark
    Hi rtv

    Sorry but is missed putting one file in the patch file
    Attached the one file missing from patch: TVLibrary/TvDatabase/Util.cs
     

    Attachments

    • MP-episodes-23209_1.patch
      30.7 KB

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Hi rtv

    Sorry but is missed putting one file in the patch file
    Attached the one file missing from patch: TVLibrary/TvDatabase/Util.cs

    Sorry - I wouldn't like to introduce a dependency on MediaPortal for TvDatabase (the cAsE in your patch is wrong as well). Did you think about multiple tv clients when you decided to persist the setting into MediaPortal.xml?
     

    Users who are viewing this thread

    Top Bottom