Fanart Handler Plugin v4.0.X.000 (2 Viewers)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    Some updates later (sorry, I dont't remember exactly when, maybe one or two), stop work.
    But at me work. And there are no errors. I am happy to correct the error, if any. But here the second case, that error can not I catch :( Or maybe it just does not.
     

    XMaM

    Portal Member
    December 15, 2012
    39
    46
    Asturias
    Home Country
    Spain Spain
    @ajs
    I found something strange for me in the source code:
    File: Utils.cs, lines 1681, 1682, function LoadSettings()

    C#:
    UseMyPicturesSlideShow = settings.GetValueAsBool("FanartHandler", "UseMyPicturesSlideShow", UseMyPicturesSlideShow);
    UseMyPicturesSlideShow = settings.GetValueAsBool("FanartHandler", "FastScanMyPicturesSlideShow", FastScanMyPicturesSlideShow);

    In the second line, UseMyPicturesSlideShow is loaded again with the value obtained from FastScanMyPicturesSlideShow. As far as I can see, this isn't used in FanartHandler.xml, so is loaded with the default value: false.

    In fact, in function SaveSettings(), lines 1797-1798, the "parallel" line is comented, so from here, FastScanMyPicturesSlideShow is never stored:
    C#:
    xmlwriter.SetValueAsBool("FanartHandler", "UseMyPicturesSlideShow", UseMyPicturesSlideShow);
    // xmlwriter.SetValueAsBool("FanartHandler", "FastScanMyPicturesSlideShow", FastScanMyPicturesSlideShow);


    Also in LoadMyPicturesSlideShowFolders() (line 1451), the first check don't load the folders if UseMyPicturesSlideShow is false
    C#:
        public static void LoadMyPicturesSlideShowFolders()
        {
          if (!UseMyPicturesSlideShow)
            return; 
    
          try
          {


    In this case, probably will be better load folder settings regardless of the value in UseMyPicturesSlideShow. Maybe someone wants deactivate temporarily UseMyPicturesSlideShow but retaining his folder configuración. The same when saving.

    I hope this can help. Thanks.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    In the second line, UseMyPicturesSlideShow is loaded again with the value obtained from FastScanMyPicturesSlideShow. As far as I can see, this isn't used in FanartHandler.xml, so is loaded with the default value: false.
    Already Fixed in Beta ...
    Maybe someone wants deactivate temporarily UseMyPicturesSlideShow but retaining his folder configuración.
    This option can be enabled only in the configuration, the image is loaded into memory and nowhere are stored. If the option is disabled, there is no sense to look for and store pictures.
     

    XMaM

    Portal Member
    December 15, 2012
    39
    46
    Asturias
    Home Country
    Spain Spain
    Add FastScanMyPicturesSlideShow - yes to config file and try or try use last beta

    I already did and it works. Thanks.

    If the option is disabled, there is no sense to look for and store pictures.

    Sorry, you're right and I agree. I forgot that the configuration is in the XML file and is not deleted even if not saved again.

    Another thing: maybe you will want to include the Spanish translation for FanartHandler and Latest Media Handler, so here they are.
     

    Attachments

    • FanartHandler_es.xml
      935 bytes
    • LatestMediaHandler_es.xml
      6.4 KB

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    No sorry mate, Still the same.....
    Try attached BasicHome xml ...
    PS: In header added:
    XML:
      <define>#useRandomGamesUserFanart:Yes</define>
      <define>#useRandomMoviesUserFanart:Yes</define>
      <define>#useRandomMoviesScraperFanart:Yes</define>
      <define>#useRandomMovingPicturesFanart:Yes</define>
      <define>#useRandomMusicUserFanart:Yes</define>
      <define>#useRandomMusicScraperFanart:Yes</define>
      <define>#useRandomPicturesUserFanart:Yes</define>
      <define>#useRandomPluginsUserFanart:Yes</define>
      <define>#useRandomScoreCenterUserFanart:Yes</define>
      <define>#useRandomTVUserFanart:Yes</define>
      <define>#useRandomTVSeriesFanart:Yes</define>
     

    Attachments

    • BasicHome.xml
      123.5 KB

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    I need to try another lightweight skin that uses FH any ideas ??
    You can try the default skins. Or my themes for titanium.

    PS: Try clearing your cache, run the media portal, wait 1 minute, if there is no picture, then press the green button to make it appear and give me the log file.
     

    404

    Portal Pro
    January 11, 2005
    307
    56
    Just installed Titanius, Uninstalled it and now this system is truly shot..Try to start MP and taskbar disappears followed by a black screen lockup, I've been setting up Windows 10 on a separate drive for a while, Guess I'm being pushed into using it a little sooner than I'd like... I'll be back in a few hours with better news I hope.
     

    Users who are viewing this thread

    Top Bottom