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

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    15,650
    10,605
    Kyiv
    Home Country
    Ukraine Ukraine
    I made the naming artist_{x} which for some reason I thought worked better.
    These file names should be checked, will perceive their normal FH or not.[DOUBLEPOST=1420443772][/DOUBLEPOST]
    Stop() seems to try to release some of those resources that Start() created, but maybe there are some references left and it fails to release the instances?
    Looked at the source code, the replacement will not solve anything.
    Code:
        internal void Stop()
        {
          try
          {
            StopTasks(false);
            logger.Info("Fanart Handler is stopped.");
          }
          catch (Exception ex)
          {
            logger.Error("Stop: " + ex);
          }
        }
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,650
    10,605
    Kyiv
    Home Country
    Ukraine Ukraine
    How many artists with sign & (I know Touch&Go) in a name? Maybe we should use this sign as a separator artists?
    Tried at home, I basically liked. While left.
    Code:
    09-Jan-2015 09:00:46 Debug [             Scraper]: --- Fanart --- Bob Marley & The Wailers ---
    09-Jan-2015 09:00:46 Debug [             Scraper]: Trying to find Fanart for Artist: Bob Marley & The Wailers
    09-Jan-2015 09:00:47 Debug [             Scraper]: MusicBrainz: Extract ID: c296e10c-110a-4103-9e77-47bfebb7fb2e
    09-Jan-2015 09:00:47 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    09-Jan-2015 09:00:47 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Fanart): Bob Marley & The Wailers - c296e10c-110a-4103-9e77-47bfebb7fb2e.
    09-Jan-2015 09:00:48 Debug [             Scraper]: Extract URL - [artistbackground] URLs Found: 7
    09-Jan-2015 09:00:48 Debug [             Scraper]: Fanart.TV: Will not download fanart image as it already exist an image in your fanart database with this source image name.
    09-Jan-2015 09:00:48 Debug [             Scraper]: Extract URL - [hdmusiclogo] URLs Found: 3
    09-Jan-2015 09:00:48 Debug [             Scraper]: Extract URL - [musicbanner] URLs Found: 4
    09-Jan-2015 09:00:48  Info [             Scraper]: Download: Fanart.TV image for Bob Marley & The Wailers (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Banner\Music\Bob Marley & The Wailers.png).
    09-Jan-2015 09:00:48 Debug [             Scraper]: Download: Image: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Banner\Music\Bob Marley & The Wailers.png: Start...
    09-Jan-2015 09:00:48 Debug [             Scraper]: Download: Image for Bob Marley & The Wailers (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Banner\Music\Bob Marley & The Wailers.png): Complete.
    09-Jan-2015 09:00:48 Debug [             Scraper]: Fanart.TV: Music Banner for Artist (Fanart): Bob Marley & The Wailers - c296e10c-110a-4103-9e77-47bfebb7fb2e download complete.
    09-Jan-2015 09:00:48  Info [     DatabaseManager]: Artist: Bob Marley & The Wailers has already maximum number of images. Will not download anymore images for this artist.
    09-Jan-2015 09:00:48 Debug [             Scraper]: --- Fanart --- Bob Marley ---
    09-Jan-2015 09:00:48 Debug [             Scraper]: Trying to find Fanart for Artist: Bob Marley
    09-Jan-2015 09:00:48 Debug [             Scraper]: MusicBrainz: DB ID: ed2ac1e9-d51d-4eff-a2c2-85e81abd6360
    09-Jan-2015 09:00:48 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    09-Jan-2015 09:00:48 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Fanart): Bob Marley - ed2ac1e9-d51d-4eff-a2c2-85e81abd6360.
    09-Jan-2015 09:00:49 Debug [             Scraper]: Extract URL - [artistbackground] URLs Found: 1
    09-Jan-2015 09:00:49  Info [             Scraper]: Download: Fanart for Bob Marley (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\Bob Marley (60286).jpg).
    09-Jan-2015 09:00:49 Debug [             Scraper]: Download: Image: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\Bob Marley (60286).jpg: Start...
    09-Jan-2015 09:00:49 Debug [             Scraper]: Download: Image for Bob Marley (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\Bob Marley (60286).jpg): Complete.
    09-Jan-2015 09:00:50  Info [     DatabaseManager]: Importing fanart into fanart handler database (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\Bob Marley (60286).jpg).
    09-Jan-2015 09:00:50 Debug [             Scraper]: Extract URL - [musiclogo] URLs Found: 2
    09-Jan-2015 09:00:50  Info [             Scraper]: Download: Fanart.TV image for Bob Marley (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\ClearArt\Music\Bob Marley.png).
    09-Jan-2015 09:00:50 Debug [             Scraper]: Download: Image: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\ClearArt\Music\Bob Marley.png: Start...
    09-Jan-2015 09:00:50 Debug [             Scraper]: Download: Image for Bob Marley (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\ClearArt\Music\Bob Marley.png): Complete.
    09-Jan-2015 09:00:50 Debug [             Scraper]: Fanart.TV: Music ClearArt for Artist (Fanart): Bob Marley - ed2ac1e9-d51d-4eff-a2c2-85e81abd6360 download complete.
    09-Jan-2015 09:00:50  Info [     DatabaseManager]: Artist: Bob Marley has already maximum number of images. Will not download anymore images for this artist.
    09-Jan-2015 09:00:50 Debug [             Scraper]: --- Fanart --- The Wailers ---
    09-Jan-2015 09:00:50 Debug [             Scraper]: Trying to find Fanart for Artist: The Wailers
    09-Jan-2015 09:00:50 Debug [             Scraper]: MusicBrainz: DB ID: 352453ac-c751-4bd8-ac20-86344a38ac90
    09-Jan-2015 09:00:50 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    09-Jan-2015 09:00:50 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Fanart): The Wailers - 352453ac-c751-4bd8-ac20-86344a38ac90.
    09-Jan-2015 09:00:51 Debug [             Scraper]: HtBackdrops: Trying to find fanart for Artist: The Wailers.
    09-Jan-2015 09:00:51 Debug [             Scraper]: HtBackdrops: Found fanart for Artist: The Wailers. MBID: c9e99d40-4a2c-4ca7-ac5b-e842264ee271
    09-Jan-2015 09:00:51 Debug [             Scraper]: HtBackdrops: Will not download fanart image as it already exist an image in your fanart database with this source image name.
    09-Jan-2015 09:00:51 Debug [             Scraper]: HtBackdrops: Found fanart for Artist: The Wailers. MBID: c9e99d40-4a2c-4ca7-ac5b-e842264ee271
    09-Jan-2015 09:00:51 Debug [             Scraper]: HtBackdrops: Will not download fanart image as it already exist an image in your fanart database with this source image name.
    09-Jan-2015 09:00:51 Debug [             Scraper]: HtBackdrops: Found fanart for Artist: The Wailers. MBID: c9e99d40-4a2c-4ca7-ac5b-e842264ee271
    09-Jan-2015 09:00:51 Debug [             Scraper]: HtBackdrops: Will not download fanart image as it already exist an image in your fanart database with this source image name.
    09-Jan-2015 09:00:51 Debug [             Scraper]: HtBackdrops: Found fanart for Artist: The Wailers. MBID: c9e99d40-4a2c-4ca7-ac5b-e842264ee271
    09-Jan-2015 09:00:51  Info [             Scraper]: Download: Fanart for the wailers (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\the wailers (11873).jpg).
    09-Jan-2015 09:00:58 Debug [             Scraper]: Download: Image: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\the wailers (11873).jpg: Resume [2]...
    09-Jan-2015 09:01:05 Debug [             Scraper]: Download: Image for the wailers (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\the wailers (11873).jpg): Complete.
    09-Jan-2015 09:01:05  Info [     DatabaseManager]: Importing fanart into fanart handler database (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\the wailers (11873).jpg).
     
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,650
    10,605
    Kyiv
    Home Country
    Ukraine Ukraine
    It seems OnSystemPowerModeChanged() is triggering start() on resume.
    I've been thinking. Why user application know that there makes the operating system, sleep, awake or something. I can throw all of this procedure, collect the test version. And you see how it will work?
     

    Attachments

    • FanartHandler.4.0.0.154.Suspend.Test.zip
      306.8 KB

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,335
    Home Country
    Germany Germany
    I made the naming artist_{x} which for some reason I thought worked better.
    These file names should be checked, will perceive their normal FH or not.
    Ideally filenames should follow the same logic both in MIH and FH. Unfortunately Mike has informed that he will no longer do anything on his MusicInfoHandler. Somebody would need to take a look into the MIH to vhange the file name logic.

    In reference to the latter, what is now the best way to set up MIH and FH to avoid that both plugins download same content but store it separately?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,650
    10,605
    Kyiv
    Home Country
    Ukraine Ukraine
    Ideally filenames should follow the same logic both in MIH and FH.
    @jameson_uk

    For backs from Fanart.TV, file name in FH and MePoTools: Artist (Fanart.TV picture ID).jpg
    Example:
    Code:
    "artistbackground": [
            {
                "id": "34169",
                "url": "http://assets.fanart.tv/fanart/music/66c662b6-6e2f-4930-8610-912e24c63ed1/artistbackground/acdc-4fcad35eb2643.jpg",
                "likes": "4"
            },
            {
                "id": "140258",
                "url": "http://assets.fanart.tv/fanart/music/66c662b6-6e2f-4930-8610-912e24c63ed1/artistbackground/acdc-54575601f3b26.jpg",
                "likes": "4"
            },
            {
                "id": "141381",
                "url": "http://assets.fanart.tv/fanart/music/66c662b6-6e2f-4930-8610-912e24c63ed1/artistbackground/acdc-5467b70af2ff0.jpg",
                "likes": "3"
            },
        ],
    Files:
    • AC_DC (34169).jpg
    • AC_DC (140258).jpg
    • AC_DC (141381).jpg
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Why user application know that there makes the operating system, sleep, awake or something.
    WM_POWERBROADCAST messages ;)

    Some examples from my HTPC:
    Code:
    [2015-01-06 06:31:25,953] [Log    ] [MPMain   ] [INFO ] - Main: WM_POWERBROADCAST (PBT_APMRESUMESUSPEND)
    [2015-01-06 06:31:28,261] [Log    ] [MPMain   ] [DEBUG] - PS: RESUMEAUTOMATIC
    
    [2015-01-06 07:08:18,220] [Log    ] [MPMain   ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE)
    [2015-01-06 07:08:18,224] [Log    ] [MPMain   ] [DEBUG] - PS: POWERSETTINGCHANGE
    [2015-01-06 07:08:18,245] [Log    ] [MPMain   ] [INFO ] - Main: WM_POWERBROADCAST (PBT_APMSUSPEND)
    [2015-01-06 07:08:18,245] [Log    ] [MPMain   ] [DEBUG] - Main: PBT_APMSUSPEND GUIGraphicsContext.currentScreen.Bounds 1920x1080
    [2015-01-06 07:08:18,245] [Log    ] [MPMain   ] [DEBUG] - Main: PBT_APMSUSPEND screen.Bounds 1920x1080
    [2015-01-06 07:08:18,245] [Log    ] [MPMain   ] [INFO ] - Main: Suspending operation
    You can test this stuff with a nice tool > SendMessage (attached).

    Open the tool, drag the crosshair to the MP window.
    Message = WM_POWERBROADCAST
    WPARAM = PBT_APMSUSPEND (for suspend) and PBT_RESUMESUSPEND (for resume)
     

    Attachments

    • SendMessage.rar
      186.2 KB

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    51
    Vienna
    Home Country
    Austria Austria
    I'm fighting to get TV Series working - in the log I see this path:

    06-Jan-2015 19:45:31 Debug [ Utils]: TV-Series Fanart folder: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Fan Art\fanart\original\

    But there is nothing stored there (except Clickfinder) - where can I set this?

    Edit - Sorry - forget it - found that in TVSeries the Fanart Config was not active ...
     
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,650
    10,605
    Kyiv
    Home Country
    Ukraine Ukraine
    Notwithstanding I still believe that tracks should be correctly tagged.
    For the local media library is true, but not for radio. Yesterday watched plays Ramazzotti and Cher, and thought that it is necessary as it is to solve. But what has not yet invented.
     
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,650
    10,605
    Kyiv
    Home Country
    Ukraine Ukraine
    FanartHandler 4.0.0.162 (Beta)
    * Changes in Now Playing Artists, Album parser. - Need Test
    * Fix for import local fanart for TV-Series.
    * Changes in Fanart.TV Initial Scrape for Movies (MyVideo).
    * Fix some debug log iformation.
    + Add some debug log iformation.
     

    Attachments

    • FanartHandler.4.0.0.162.Beta.zip
      309.1 KB
    • FanartHandler-4.0.0.162.mpe1
      11 MB

    Users who are viewing this thread

    Top Bottom