[Pending] [TvGuide] New skin property: #TV.Guide.idProgram for selceted item (1 Viewer)

Scrounger

Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    513
    Stuttgart
    Germany Germany
    Hi togeather,

    could you please integrate a new skin property #TV.Guide.idProgram for selected item?

    Background:
    I would like to use this property to call the Gui Detail of my clickfinder ProgramGuide plugin.

    At the moment, the #TV.Guide.Time property gives only the start - end time (e.g. 20:15 - 22:00) without the date back.
    So it's only possible to call hyperlink parameter for programs of today
     
    Last edited by a moderator:

    Scrounger

    Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    513
    Stuttgart
    Germany Germany
    Ok here is a patch for TvGuideBase.cs with the new skin property #TV.Guide.idProgram.

    Could you please integrate it in the next Version of MP?
     

    Attachments

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    Hello Scrounger

    Sounds okay in theory. :)
    Could you please provide a diff file rather than the whole class so that we can see exactly what you've changed?
    I did diff the file manually, but the TV guide genre colouring changes are showing - I guess that you are working with MP 1.2.x code.
    This makes it difficult to see what changes are actually from you...

    mm
     

    Scrounger

    Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    513
    Stuttgart
    Germany Germany
    Hello Scrounger

    Sounds okay in theory. :)
    Could you please provide a diff file rather than the whole class so that we can see exactly what you've changed?
    I did diff the file manually, but the TV guide genre colouring changes are showing - I guess that you are working with MP 1.2.x code.
    This makes it difficult to see what changes are actually from you...

    mm
    Ok, your right MP 1.2.x code is a bit out of date;)
    So i grabbed the last svn from github, put my changes in there and created a diff file.

    My changes (just two line of code):
    • TvGuideBase.patch: Line 1207 and 1236
    • TvGuideBase.diff: Line 9 and 17
    Hope you can use the files now?
     

    Attachments

    Last edited:

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,930
    2,234
    Ba-Wü
    Germany Germany
    Country flag
    Since this seems a minor thing do you think it is possible to add it to MP 1.3.0 Beta? (mantis entry & GIT branch needed I think)
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,930
    2,234
    Ba-Wü
    Germany Germany
    Country flag
    And two more new properties (TvGuide, TvOSD) ;)
    • Tv.View.idProgram
    • TV.Next.idProgram
    If a record is playing, properties will be set to 0 -> can be used for visible condition.
    Is it possible with this patch to differ between recordings and LiveTV? That would be nice! :)

    Problem:
    In LiveTV OSD I want to display the upcoming show. But I don't want to show this info in recorded tv because it makes no sense there...

    Thanks!

    By the way: Are you able to create a GIT pull request?

    PS: Moved this thread to "Submit code patches" :)
     
    Last edited:

    Scrounger

    Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    513
    Stuttgart
    Germany Germany
    Is it possible with this patch to differ between recordings and LiveTV? That would be nice! :)
    Sure, if its a recording (no signal, no free card, etc.) the idProgram value = 0. So you can use the string.equals methode to set visibility.

    By the way: Are you able to create a GIT pull request?
    No, please send me a pm (in German) and explain how does this work, thx.
     
    Last edited:

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    framug [solved] TVguide : channel number. MediaPortal 1 Talk 7
    framug No color in TVGuide when XMLTV without DVB EPG MediaPortal 1 Talk 59
    M Guide mapping schedules direct, tvguide, epg buddy How to get correct entry to the correct channel? Electronic Program Guide 0
    Rob Hexenmeister Skin functions: What is available? General Support 7
    Rob Hexenmeister Skinning Online Videos question OnlineVideos 2
    Rob Hexenmeister Quick question - skinning MyPics General Support 7
    ajs [Info] 0.7 Beta - MPExtended, WebMP, Bootstrap skin by ajs - Hard way MPExtended 602
    S Touchscreen skin? MediaPortal 1 Talk 6
    azzuro [fixed] 5011: Version label in Splash screen - pos, size from skin MediaPortal 1 61
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    V Skin With Menu Editor MediaPortal 1 Skins 13
    wizard123 New Skin Template ? MediaPortal 2 8
    Rob Hexenmeister [solved] Latest Media Handler - skinning buttons Fanart Handler 19
    CyberSimian [solved] MP1-4976 Built-in skin variables for current date MediaPortal 1 8
    Mr6686 [solved] Titan skin broken since update to 1.23 Installation, configuration support 6
    doskabouter Skin question Skins and Plugins Installer (MPEI) 1
    Y Titan Skin unter 1.23 nicht mehr so schön Allgemeines Supportforum 1
    framug 1.22.0 BasicHome Editor settings for DefaultWide HD skin not kept when update 1.22 3
    catavolt [solved] FanartHandler - Skin - Holiday and Spotlight support Fanart Handler 10
    ajs [fixed] 4936 - Strange behavior of the font in the skin MediaPortal 1 35
    ajs [solved] 4935: Add string.replace function to Skin engine MediaPortal 1 10
    ajs [solved] Latest Media Handler - Skin settings - Custom latests items number Fanart Handler 27
    Rob Hexenmeister [solved] Latests Media Handler - Skinning an updating window or control Fanart Handler 26
    T Skin Wechsel Installationsprobleme? 1
    Similar threads

























    Top Bottom