[Bug] - #totalduration not calculated when loading existing playlist

Discussion in 'MediaPortal 1.2.0 ALPHA' started by pilehave, December 21, 2010.

  1. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    MediaPortal Version: SVN 27097
    MediaPortal Skin: Blue3Wide
    Windows Version: Windows 7 x64

    Hi!

    #totalduration is not set when navigating playlist in some situations.

    It works if you go to My Music, press F9 to show contextmenu, choose first option to add the album or track to playlist. Then #totalduration is filled.

    If you instead load an existing playlist, #totalduration is never calculated.

    From what I can tell, this is (or should be) called in GUIMusicBaseWindow.cs around line 668 or so. I added logging to check this:



    Code (Text):
    1.  
    2.         GUIListItem item = facadeLayout[i];
    3.         MusicTag tag = (MusicTag)item.MusicTag;
    4.         if (tag != null)
    5.         {
    6.           Log.Info("Testing tag"); //This is never logged when loading a playlist. The underlying code is then never executed.
    7.  
    #totalduration is supposed to replaced #itemcount for music, so this should definately be fixed.
     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. jameson_uk
    • Team MediaPortal

    jameson_uk Retired Team Member

    Joined:
    January 27, 2005
    Messages:
    7,258
    Likes Received:
    2,228
    Gender:
    Male
    Occupation:
    Data Warehousing Consultant
    Location:
    Birmingham
    Ratings:
    +2,403 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    It would not surprise me... I will check this out tomorrow

    Thanks
     
    • Like Like x 2
  4. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    That would be great, I really like how flexible the whole skin-engine is turning out to be, after all the work put into it :)
     
    • Like Like x 1
  5. jameson_uk
    • Team MediaPortal

    jameson_uk Retired Team Member

    Joined:
    January 27, 2005
    Messages:
    7,258
    Likes Received:
    2,228
    Gender:
    Male
    Occupation:
    Data Warehousing Consultant
    Location:
    Birmingham
    Ratings:
    +2,403 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    • Like Like x 2
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!