[Pending] - [TvGuide] New skin property: #TV.Guide.idProgram for selceted item

Discussion in 'Submit: code patches (MediaPortal/TV-Server/etc.)' started by Scrounger, September 14, 2012.

  1. Scrounger
    • Premium Supporter

    Scrounger Retired Team Member

    Joined:
    January 21, 2009
    Messages:
    1,032
    Likes Received:
    468
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +514 / 0
    Home Country:
    Germany Germany
    Show System Specs
    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: March 15, 2013
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Scrounger
    • Premium Supporter

    Scrounger Retired Team Member

    Joined:
    January 21, 2009
    Messages:
    1,032
    Likes Received:
    468
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +514 / 0
    Home Country:
    Germany Germany
    Show System Specs
    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?
     

    Attached Files:

  4. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
  5. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    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
     
    • Like Like x 1
  6. Scrounger
    • Premium Supporter

    Scrounger Retired Team Member

    Joined:
    January 21, 2009
    Messages:
    1,032
    Likes Received:
    468
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +514 / 0
    Home Country:
    Germany Germany
    Show System Specs
    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?
     

    Attached Files:

    Last edited: September 25, 2012
  7. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    Seems okay to me. :)
    Anybody else?
     
    • Like Like x 2
  8. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    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)
     
  9. Scrounger
    • Premium Supporter

    Scrounger Retired Team Member

    Joined:
    January 21, 2009
    Messages:
    1,032
    Likes Received:
    468
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +514 / 0
    Home Country:
    Germany Germany
    Show System Specs
    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.
     

    Attached Files:

    • TvOSD.diff
      File size:
      1.2 KB
      Uploaded:
      September 27, 2012
      Views:
      113
    • TvOSD.patch
      File size:
      73.4 KB
      Uploaded:
      September 27, 2012
      Views:
      111
    • TVHome.patch
      File size:
      129.4 KB
      Uploaded:
      September 27, 2012
      Views:
      114
    • TvHome.diff
      File size:
      3.2 KB
      Uploaded:
      September 27, 2012
      Views:
      108
    Last edited: September 27, 2012
    • Like Like x 1
  10. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    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: September 27, 2012
  11. Scrounger
    • Premium Supporter

    Scrounger Retired Team Member

    Joined:
    January 21, 2009
    Messages:
    1,032
    Likes Received:
    468
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +514 / 0
    Home Country:
    Germany Germany
    Show System Specs
    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.

    No, please send me a pm (in German) and explain how does this work, thx.
     
    Last edited: September 28, 2012
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!