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

D3ltoroxp

MP Donator
  • Premium Supporter
  • June 1, 2008
    3,308
    205
    Home Country
    Germany Germany
    So ajs here the screen with my problem...

    This is the code for the fanart bar in basic home, this xml was loaded in basichome. I know in the past it works.. :)

    XML:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <window>
    <controls>
    <control>
    <description>DUMMY CONTROL FOR FANART HANDLER IS SCRAPING VISIBILITY CONDITION</description>
    <type>label</type>
    <id>91919280</id>
    <posX>0</posX>
    <posY>0</posY>
    <width>1</width>
    <visible>no</visible>
    </control>
    <control>
    <type>image</type>
    <id>0</id>
    <posX>60</posX>
    <posY>150</posY>
    <width>570</width>
    <height>19</height>
    <texture>common_osd_progress_bg.png</texture>
    <visible>control.isvisible(91919280)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>
    <control>
    <description>Scraping Label</description>
    <type>label</type>
    <id>0</id>
    <posX>60</posX>
    <posY>102</posY>
    <width>570</width>
    <font>font14</font>
    <label>#SkinTranslation.Translations.fanart.scraping.Label #fanarthandler.scraper.percent.completed%</label>
    <visible>control.isvisible(91919280)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>
    <control>
    <description>Progress Bar</description>
    <type>progress</type>
    <id>118</id>
    <posX>51</posX>
    <posY>154</posY>
    <width>570</width>
    <height>10</height>
    <label>#fanarthandler.scraper.percent.completed</label>
    <texturebg></texturebg>
    <onlymidtexture>no</onlymidtexture>
    <midwidth>200</midwidth>
    <midheight>15</midheight>
    <midoffsetX>0</midoffsetX>
    <midoffsetY>0</midoffsetY>
    <visible>control.isvisible(91919280)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>
    </controls>
    </window>
     

    Attachments

    • 20-37-25.png
      20-37-25.png
      2.1 MB

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    This is the code for the fanart bar in basic home, this xml was loaded in basichome.
    I use
    XML:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <window>
      <controls>
     
        <control>
            <description>DUMMY CONTROL FOR FANART HANDLER IS SCRAPING VISIBILITY CONDITION</description>
            <type>label</type>
            <id>91919280</id>
            <posX>0</posX>
            <posY>0</posY>
            <width>1</width>
            <visible>no</visible>
        </control>      
    
        <control>
            <description>Scraping Header</description>
            <type>label</type>
            <id>0</id>
            <posX>70</posX>
            <posY>96</posY>
            <width>1000</width>
            <textcolor>ffffffff</textcolor>
            <font>TitanLight12</font>
            <label>Fanart #fanartHandler.scraper.task #fanarthandler.scraper.percent.completed#fanarthandler.scraper.percent.sign</label>
            <align>left</align>
            <visible>control.isvisible(91919280)</visible>
            <animation effect="fade" time="250">WindowOpen</animation>
            <animation effect="fade" time="250">WindowClose</animation>
        </control>    
           
      </controls>
    </window>

    I do not know how to describe the progress bar, but in music it has a texture, you do not.
    XML:
          <control>
            <id>0</id>
            <description>progress bar</description>
            <type>progress</type>
            <visible>player.hasmedia</visible>
                <posX>447</posX>
                <posY>928</posY>
                <width>751</width>
                <height>15</height>
                <label>#percentage</label>
                <texturebg>-</texturebg>
                <lefttexture>osd_progress_left.png</lefttexture>
                <midtexture>osd_progress_mid.png</midtexture>
                <righttexture>osd_progress_right.png</righttexture>
            <animation effect="fade" time="250">WindowOpen</animation>
            <animation effect="fade" time="250">WindowClose</animation>
          </control>
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    Hello @ajs ,

    There is a small issue relating to resuming from standby that remains in your latest version (which is probably a legacy of the original code). If FH is linked to remotely stores shares, there is a problem in the order/timing of the access after resume:

    The system is correctly entering standby at 10:26
    21-Nov-2015 10:26:34 Info [ FanartHandler]: Fanart Handler: is suspended/hibernated.
    21-Nov-2015 10:26:34 Info [ FanartHandler]: Fanart Handler: is suspending/hibernating...
    Next log entry is then
    21-Nov-2015 12:06:13 Error [ DatabaseManager]: getAnyFanart: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
    bei FanartHandler.DatabaseManager.GetAnyFanart(Category category)
    Logging of this error contiues until 12:06:16, then normal operation kicks in:
    21-Nov-2015 12:06:16 Info [ FanartHandler]: Fanart Handler: is resuming from standby/hibernate.
    21-Nov-2015 12:06:16 Debug [ DatabaseManager]: initDB: Start: mediaportal
    21-Nov-2015 12:06:16 Info [ DatabaseManager]: Successfully Opened Database: FanartHandler.db3

    I am not sure, but if the DatabaseManager is opening the database after resume, it should probably be closed before entering standby. Other plugins, e.g. TVSeries do close their database before stopping for standby/hibernation. Could this be the source of the errors logged?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    There is a small issue relating to resuming from standby that remains in your latest version (which is probably a legacy of the original code). If FH is linked to remotely stores shares, there is a problem in the order/timing of the access after resume:
    Try ...
     

    Attachments

    • FanartHandler.dll.zip
      378.8 KB

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    This is the result.
    22-Nov-2015 10:09:37 Info [ FanartHandler]: Fanart Handler: is suspending/hibernating...
    22-Nov-2015 10:09:37 Info [ FanartHandler]: Fanart Handler: is suspended/hibernated.
    22-Nov-2015 10:09:37 Debug [ RefreshWorker]: Wait for DB...
    manual resume:
    22-Nov-2015 10:09:58 Info [ FanartHandler]: Fanart Handler: is resuming from standby/hibernate.
    22-Nov-2015 10:09:58 Debug [ DatabaseManager]: initDB: Start: mediaportal
    22-Nov-2015 10:09:58 Info [ DatabaseManager]: Successfully Opened Database: FanartHandler.db3
    "Wait for DB" is new. Note that the server was up while I was doing this, hence there was no need to wait for the shares.I'll run a test with the server down later today to verify that the DatabaseManager errors no longer occur.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom