season banners suddenly gone. (1 Viewer)

gibman

Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Hi!

    using MP-TVSeries-2.2.3331 (SVN TEST).

    The problem is that none of my series will display season banners.
    Neither in season view, nor in episode view.

    It has been working ? But I cant figure out what broke it.

    any ideas ?
    what to look for ?

    I'm fairly new to this plugin.

    /gibman
     

    Attachments

    • Image1.jpg
      Image1.jpg
      23.2 KB
    • Image2.jpg
      Image2.jpg
      23.1 KB

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Do you see the artwork in the configuration tool?

    I have seen a similar issue you describe when 'Animations/Transitions' are disabled in MediaPortal->General Settings.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    As u can see dexter season 3 has an associated season banner.

    The left dropdown is inactive though.
    Although on some series it's active (but all series are inactive in my setup).

    Also the right dropdown is always initially empty, although it does contain one item, in this case the season banner.

    I guess it's not meant to persist the chosen banner from the dropdown ?

    /gibman
     

    Attachments

    • config.jpg
      config.jpg
      104 KB

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    I debugged the latest plugin code and found the culprit.

    in dbbase.cs;

    method: getRandomBanner ()

    we call;
    randImage = Helper.PathCombine(Settings.GetPath(Settings.Path.banners), randImage);

    randImage is "\\\\server\\E\\install\\_Movie\\DVB\\software players\\mediaportal\\shared\\Thumbs\\MPTVSeriesBanners\\Heroes\\-langen-graphical/79501-g16.jpg"

    after the call to ; Helper.PathCombine, randImage now looks a bit different. double backslashes stripped away.
    "\\server\\E\\install\\_Movie\\DVB\\software players\\mediaportal\\shared\\Thumbs\\MPTVSeriesBanners\\Heroes\\-langen-graphical/79501-g16.jpg"

    This makes the call to System.IO.File.Exists(randImage) return false. This is the reason as to why I dont see any season banners.

    If I avoid calling Helper.PathCombine, then all is good.

    I guess the fix should be done in the "Helper.PathCombine" method.
    It should support UNC paths without stripping away too many back slashes :)

    my mediaportaldirs.xml is;

    <Dir id = "Database">
    <Path>\\server\E\install\_Movie\DVB\software players\mediaportal\shared\Database\</Path>
    ....

    /gibman
     

    Users who are viewing this thread

    Top Bottom