PureVisionHD 1080 (4 Viewers)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,047
    2,131
    South of France
    Home Country
    France France
    Hello,
    Another request for recorded files.

    In MyVideos, when we go in a folder, we have items number displayed :

    zz1.png

    But, in recorded files, no items number :

    zz2.png

    Is it possible to have this "extra" information, please ?
     

    Lichloathe

    MP Donator
  • Premium Supporter
  • July 25, 2007
    200
    184
    Home Country
    Australia Australia
    Not sure if this helps but I put items count in apollo skin in recorded tv screen, see attached.
    It doesn't give selected item but total only.
    I used this label in mytvrecordedtv.xml.
    <label>#itemcount Items</label>
    Is this what you had in mind?
     

    Attachments

    • 1.png
      1.png
      2.2 MB
    • 2.png
      2.png
      2 MB

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,974
    1,854
    Southampton
    Home Country
    United Kingdom United Kingdom
    TV recordings screen no has any property for numbering the entries.
    It doesn't give selected item but total only.
    The skin engine does provide this information, but with quirks. The following screen shot is for the "Recorded Radio" panel in my "Clarity" skin (the "Recorded TV" panel is the same, as I use common code for both panels):

    clarity_recorded_radio.jpg

    However, the quirks are that the values are sometimes unset, and sometimes set incorrectly. So to get a sensible outcome in all cases, it is necessary to use some complicated logic. This is what I use:

    Code:
      <control>
        <description>Number of items in a list</description>
        <type>label</type>
        <posX>0</posX>
        <posY>#cw.nlist.count.y</posY>
        <width>#cw.panel.w</width>
        <height>#cw.nlist.count.h</height>
        <align>center</align>
        <font>#cw.nlist.count.f</font>
        <textcolor>#cw.nlist.count.c</textcolor>
        <description>
          The built-in variables "#selectedindex" and "#itemcount" are unset
          or incorrectly set in certain situations.  To avoid bad labelling
          appearing on the panel, we display the values shown below, where
          "(null)" represents the zero-length string, and "n" and "m" are
          integers:
            ~~~~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~~~~
            #selectedindex  #itemcount  label shown
            ~~~~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~~~~
               (null)         (null)    (none)
               (null)           0       0 items
               (null)           1       1 item
               (null)           n       n items
                 0            (null)    (none)
                 0              0       0 items
                 0              1       1 item
                 0              n       n items
                 n            (null)    Item n
                 n              0       Item n
                 n              1       Item 1
                 n              m       Item n of m
            ~~~~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~~~~
          In addition, when the context menu is on the screen, "#selectedindex"
          is the index of the highlighted item in the context menu, and not the
          index of the item in the list.  So when the context menu is visible
          (language string: 102012), we display the null string or "n items",
          as appropriate.
        </description>
        <label>#(switch(
          and(eq(#currentmodule,L(102012)),eq(#itemcount,'')),
            '',
          eq(#currentmodule,L(102012)),
            string.formatcount(
              #itemcount,'{0} items|{0} item|{0} items'),
          and(eq(#selectedindex,''),eq(#itemcount,'')),
            '',
          and(eq(#selectedindex,'0'),eq(#itemcount,'')),
            '',
          or(eq(#selectedindex,''),eq(#selectedindex,'0')),
            string.formatcount(
              #itemcount,'{0} items|{0} item|{0} items'),
          or(eq(#itemcount,''),eq(#itemcount,'0')),
            'Item #selectedindex',
          eq(1,1),
            'Item #selectedindex of #itemcount'))</label>
      </control>

    Note that some of the text constants are hard-coded English, so if you wanted to enable your skins for other languages, you would need to modify those parts of the code.

    -- from CyberSimian in the UK
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,621
    10,631
    Königstein (Taunus)
    Home Country
    Germany Germany
    Well, here we go: I added the logic of @CyberSimian (Big THX again!) to the tv recorded and the tv scheduler screen (avoiding somerone has to ask for it :D) and made it language neutral, so only the highlighted itemnumber and the itemcount is shown.
    Result see in screenshots below ;)
    This will go in the new release of PVHD (will be very soon) ;)

    12-31-06.jpg 12-30-54.jpg
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,621
    10,631
    Königstein (Taunus)
    Home Country
    Germany Germany
    We will never see "shares" view in the shortcut, we see shortcut based on last video choose...
    And OFC, the one I use most of the time is "shares"... :(
    Sorry for the late reply, just saw your request :oops:
    Let me first explain some basics: MyVideo plugin consists of two important XMLs:
    MyVideo.xml = XML for shares view - window ID 6
    MyVideoTitle = XML for database views - window ID 25
    The hyperlink I use in the XML mytvhomeServer.xml is 25, so it will always lead to database view (which should be correct for most users).
    If you always use shares view, just open mytvhomeServer.xml, and search for <hyperlink>25</hyperlink>.
    Replace that entry with <hyperlink>6</hyperlink> and you're done.
    Hope it helps ;)
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,621
    10,631
    Königstein (Taunus)
    Home Country
    Germany Germany
    Hi folks,
    As we released MP 1.31 Pre-Release, I just released the new version PureVisionHD 1080 v. 11.2 ::: HERE :::
    New in this version:
    • Volume display now shows progressbar and number
    • New button and display of "General MP Keyboard Shortcuts" in screen Settings->General and SkinInfo (? in topbar)
    • Added itemcount to Recordings, Recording Timer and Radio Recordings
    • New colours for EPG
    • More info in the title bars of the different TV section screens
    • Fixed all bugs reported in forum and a lot more
    Hope you´ll like it ;)
    And of course Happy Easter to all of you ;)
     
    Last edited:

    High_Five

    Design Group
  • Team MediaPortal
  • February 10, 2023
    68
    206
    Home Country
    Germany Germany
    Hello @catavolt,
    thank you for your new skinupdate. I noticed that with the new itemcounts the used string id 604 = "Recorded TV" in <define property="true" evaluateNow="true">#recordings:#(L(604))</define> does not fit for Recorded Radio. After reviewing various strings.xml in the "language" folder, it might be better to use #(L(100763) for Recorded Radio here.
     

    Users who are viewing this thread

    Top Bottom