[solved] Latest media handler - time reported as date (1 Viewer)

Rob Hexenmeister

MP Donator
  • Premium Supporter
  • May 12, 2011
    169
    38
    Slaithwaite
    United Kingdom United Kingdom
    Country flag
    Evening all,

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

    Thanks
    RH
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,714
    8,260
    Kyiv
    Ukraine Ukraine
    Country flag
    selected.startTime
    Its DateTime in format - yyyy-MM-dd HH:mm:ss - returnet by MediaPortal TV Plugin (property StartTime)
    endTime is behaving a bit oddly as well
    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.
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    169
    38
    Slaithwaite
    United Kingdom United Kingdom
    Country flag
    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:
     

    Attachments

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    169
    38
    Slaithwaite
    United Kingdom United Kingdom
    Country flag
    Interesting BasicHome - very individual (y)

    Gesendet von meinem SM-T819 mit Tapatalk


    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
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,714
    8,260
    Kyiv
    Ukraine Ukraine
    Country flag
    I can't do that with Start time as only the date part is showing.
    TV Plugin return DateTime without time :(
    where to find the list of new red dot properties
    All LMH Properties ... yoavain/mediaportal-latest-media-handler
    Code:
    #latestMediaHandler.tvrecordings.reddot
    and how to specify folder locations.
    What folders?
    how to reference file folders in the xmls
    What files?
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    169
    38
    Slaithwaite
    United Kingdom United Kingdom
    Country flag
    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
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    13,311
    9,586
    Lanzarote
    Germany Germany
    Country flag
    Have a look in the DWHD TVOSD.xml where I use LMH properties to show ongoing recordings with start/end times, channel logos etc. ;)
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    13,714
    8,260
    Kyiv
    Ukraine Ukraine
    Country flag
    RedDot - one property for all.
    Record - RedDot on
    No record - RedDot off ;)

    --
    WBR, ajs :):whistle::coffee:
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    Rob Hexenmeister [solved] Latest Media Handler - skinning buttons Fanart Handler 19
    Rob Hexenmeister Latest Media Handler - facade properties - itemcount General Support 3
    Lichloathe [solved] Latest Media Handler - Default view for TVSeries on startup Fanart Handler 2
    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
    Rob Hexenmeister Video Buttons / Latest Media MediaPortal 1 Skins 7
    1gkar Latest Intel HD4600 Drivers Issue General Support 6
    T No TV after updating Windows 10 to latest Version 1903 / OS build 18362.175 (logs attached) General Support 2
    G How best to get cover art for tracks to show up on the Audio Menu (Latest Added, Unplayed)? General 9
    K MP2 - V2.3.2 media import General 12
    R MP Extended for Media Portal 1 MPExtended 10
    T MP2 - V2.3 Media Portal Crashes Every Few Days Submit: Bug Reports 4
    M [solved] Media Portal 2.3.2 Audiotitel werden übersprungen Allgemeines Support- und Diskussionsforum 7
    Wladi 1.27.0 Media Portal freezes watch/edit Videos 0
    J Copying Old VHS tapes Newcomers Forum 8
    C Media Portal 1.22 hängt neuerdings beim Start Allgemeines Supportforum 3
    toricred MP2 - V2.3 MP 2.3 Media Library Duplicates General 20
    O No Video playback on Media Portal 2.2.3 Newcomers Forum 2
    F Remote goes tos Media Center after Media Portal Remotes 2
    S Kommerzielle HTPC´s mit "selbst entwickelter Media center Distribution auf Basis von Media Portal" MediaPortal Café 9
    F Media Port 1.16 to 1.25 Installation, configuration support 1
    RoChess Weird GPU crash -- possible cause: resizing media MediaPortal 1 Talk 8
    J Navigating media drive General 4
    J Will Media Portal meet my requirements? General Support 4
    C Imported media doesn't show up immediately? General 1

    Similar threads

    Top Bottom