Latest media handler - time reported as date

Discussion in 'Fanart Handler' started by Rob Hexenmeister, May 6, 2019.

  1. Rob Hexenmeister
    • Premium Supporter

    Rob Hexenmeister MP Donator

    Joined:
    May 12, 2011
    Messages:
    92
    Likes Received:
    11
    Gender:
    Male
    Location:
    Slaithwaite
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Evening all,



    #latestMediaHandler.tvrecordings.selected.startTime is reporting the dateAdded in my version

    Thanks
    RH
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Rob Hexenmeister
    • Premium Supporter

    Rob Hexenmeister MP Donator

    Joined:
    May 12, 2011
    Messages:
    92
    Likes Received:
    11
    Gender:
    Male
    Location:
    Slaithwaite
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    endTime is behaving a bit oddly as well !
     
  4. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,427
    Likes Received:
    2,517
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,438 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Its DateTime in format - yyyy-MM-dd HH:mm:ss - returnet by MediaPortal TV Plugin (property StartTime)
    Its DateTime in format - yyyy-MM-dd HH:mm:ss - returnet by MediaPortal TV Plugin (property EndTime)

    LMH plugin simply takes the values from TV Plugin that it gave, it accepted and gave to the skin.
     
  5. Rob Hexenmeister
    • Premium Supporter

    Rob Hexenmeister MP Donator

    Joined:
    May 12, 2011
    Messages:
    92
    Likes Received:
    11
    Gender:
    Male
    Location:
    Slaithwaite
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Thank you. I can see that with End Time. I can presumably just right trim the string then and display the right hand 8 characters.

    I can't do that with Start time as only the date part is showing.

    Apologies for the bombardment of questions lately, but things have been progressing and I am left with the questions that I couldn't find the answers to in the forums or documentation...

    Here's progress so far...
    Upcoming questions soon on where to find the list of new red dot properties, and how to specify folder locations. I bet you can hardly wait :rolleyes:
     

    Attached Files:

    • Like Like x 1
  6. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,109
    Likes Received:
    4,863
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,216 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Interesting BasicHome - very individual (y)

    Gesendet von meinem SM-T819 mit Tapatalk
     
    • Like Like x 1
  7. Rob Hexenmeister
    • Premium Supporter

    Rob Hexenmeister MP Donator

    Joined:
    May 12, 2011
    Messages:
    92
    Likes Received:
    11
    Gender:
    Male
    Location:
    Slaithwaite
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs


    High praise indeed! I am making good progress. I had some very good help from AJS the last few days on Play Buttons for LatestMediaHandler and I will be adding some new ideas to it.

    I am still stuck with some things - making the red dots work properly for scheduled recordings that are recording, how to reference file folders in the xmls, and the start and end times of course, but once these are resolved I will let you have a copy of this and all my customised xmls to play with and work your superior magic on if you wish !

    RH
     
    • Like Like x 2
  8. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,427
    Likes Received:
    2,517
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,438 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    TV Plugin return DateTime without time :(
    All LMH Properties ... yoavain/mediaportal-latest-media-handler
    Code (Text):
    1. #latestMediaHandler.tvrecordings.reddot
    What folders?
    What files?
     
    • Like Like x 1
  9. Rob Hexenmeister
    • Premium Supporter

    Rob Hexenmeister MP Donator

    Joined:
    May 12, 2011
    Messages:
    92
    Likes Received:
    11
    Gender:
    Male
    Location:
    Slaithwaite
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hello AJS, thank you for replying. Shame about the Start Time. I think I will take the times off off Basic Home if I can't present them properly.

    The red dots - I think maybe I haven't explained very well what I am trying to do. In the screenshot earlier in the thread you will see I have the four scheduled recordings shown at the bottom of the screen. I want to show a red dot next to any one of those which is recording. At the moment I have a condition which sort of works but falls foul if there are two episodes of the programme on the same channel on the same day. I can't put the start times into the condition because one of them uses pre recording padding of seven minutes and therefore the values would never match.

    My current visibility condition for showing a red dot next to a scheduled programme :
    [string.equals(#latestMediaHandler.tvrecordings.scheduled4.title,#latestMediaHandler.tvrecordings.active4.title)+string.equals(#latestMediaHandler.tvrecordings.scheduled4.startDate,#latestMediaHandler.tvrecordings.active4.startDate)+string.equals(#latestMediaHandler.tvrecordings.scheduled4.channel,#latestMediaHandler.tvrecordings.active4.channel)]

    I was hoping there would be something like LatestMediaHandler.Tvrecordings.scheduled4.Reddot true/false which I could use. There doesn't seem to be such a property.

    The folders: when I am playing back a TV recording I want to display the channel logo (not the recording thumb). I have worked out how to extract the channel name from the recording (#play.current.channel). So with the channel name I was hoping to use something along the lines of <texture>\logos\#play.current.channel .png<texture but obviously that is neither the correct way to refer to a filename nor a filepath and I am stuck. Are the file paths to logos etc defined as properties in MediaPortal ? I would rather not use a static filepath such as C:\Program Files ....etc.

    Many thanks
    RH
     
  10. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,109
    Likes Received:
    4,863
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,216 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Have a look in the DWHD TVOSD.xml where I use LMH properties to show ongoing recordings with start/end times, channel logos etc. ;)
     
    • Like Like x 1
  11. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,427
    Likes Received:
    2,517
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,438 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    RedDot - one property for all.
    Record - RedDot on
    No record - RedDot off ;)

    --
    WBR, ajs :):whistle::coffee:
     
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!