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

Scrounger

Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    514
    Stuttgart
    Home Country
    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
    514
    Stuttgart
    Home Country
    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

    • TvGuideBase.patch
      151.4 KB

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    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
    514
    Stuttgart
    Home Country
    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

    • TvGuideBase.patch
      167.9 KB
    • TvGuideBase.diff
      5 KB
    Last edited:

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    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)
     

    Scrounger

    Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    514
    Stuttgart
    Home Country
    Germany Germany
    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.
     

    Attachments

    • TvOSD.diff
      1.2 KB
    • TvOSD.patch
      73.4 KB
    • TVHome.patch
      129.4 KB
    • TvHome.diff
      3.2 KB
    Last edited:

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    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
    514
    Stuttgart
    Home Country
    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

    Top Bottom