[confirm] - #itemtype not working in string.equals

Discussion in 'MP 1.3.0 Alpha' started by cul8er, July 20, 2012.

  1. cul8er
    • Team MediaPortal

    cul8er Retired Team Member

    Joined:
    August 31, 2006
    Messages:
    2,159
    Likes Received:
    2,682
    Ratings:
    +2,698 / 0
    Home Country:
    Sweden Sweden
    Hi,

    It looks like #itemtype not working in string.equals() statements in skins. Using this;
    <visible>string.equals(#itemtype,#(L(528)))</visible>
    would work in MP1.2 but does not work in MP1.3 Alpha.

    No errors in logs. I have tried the same skin (Avallonis) in MP1.2 and this works and using MP1.3 and it does not work.

    To test this;
    1. open your mymusicgenres.xml in DefaultWide skin and add this code;
    Code (Text):
    1. <control>
    2.     <description>Test</description>
    3.     <type>fadelabel</type>
    4.     <id>1</id>
    5.     <posX>20</posX>
    6.     <posY>200</posY>
    7.     <width>550</width>
    8.     <font>font12</font>
    9.     <textcolor>FFFFFFFF</textcolor>            
    10.     <label>Test text</label>
    11.     <visible>string.equals(#itemtype,#(L(528)))</visible>
    12. </control>
    2. Run MP and goto myMusic
    3. Switch to Album Artist view and you will see that the new fadelabel does not show as it should.

    More info;
    1. The #itemtype will be "Album Artist" so this is correct
    2. The #(L(528)) will translate into Album Artist

    But the evaluate does not do its job properly anymore.

    Please let me know if you need more info.



    best regards
    cul8er
     
    Last edited: July 20, 2012
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Paranoid Delusion
    • Team MediaPortal

    Paranoid Delusion Moderation Manager

    Joined:
    June 13, 2005
    Messages:
    13,062
    Likes Received:
    1,481
    Gender:
    Male
    Occupation:
    Electrical Engineer
    Location:
    Cheshire
    Ratings:
    +1,482 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
  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. cul8er
    • Team MediaPortal

    cul8er Retired Team Member

    Joined:
    August 31, 2006
    Messages:
    2,159
    Likes Received:
    2,682
    Ratings:
    +2,698 / 0
    Home Country:
    Sweden Sweden
    so this should be marked as BUG?

    best regards cul8er
     
  6. elliottmc
    • Team MediaPortal

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Well, so far none of the experts have commented. I know how busy they are, but I am sure they will get round to it.
     
    • Like Like x 1
  7. Mr. V

    Mr. V Portal Pro

    Joined:
    September 15, 2007
    Messages:
    150
    Likes Received:
    82
    Location:
    Brisbane
    Ratings:
    +83 / 0
    Home Country:
    Same problem here. Seems to be broken.
     
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!