[solved] When playing music Fanart does not appear immediately after downloading (3 Viewers)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,371
    Kyiv
    Home Country
    Ukraine Ukraine
    You never give up, right?!
    I try ... This is a hobby, so it’s interesting to find solutions to problems.
    But why for the DB key "tiesto pres allure" the MBID of the second artist is stored instead of the first artist's MBID?
    This result returned the site search ID, why, I do not know. For the artist Tiësto pres. Allure, 3 searches are performed (Tiësto pres. Allure, Tiësto, Allure) and each must be saved.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,371
    Kyiv
    Home Country
    Ukraine Ukraine
    FH tries to reduce the number of visits to sites, so the search for the ID is carried out at the initial request for the selected providers, if the ID is not found, then the FH searches for pictures by artist name, and if the picture is found and there is an ID in the response of one of their sites, then FH saves it for further use.

    If we consider a bad option, then there may be such a scenario:
    • Query ID by providers, did not return the result. Network failure, the one provider and did not find such an Artist, there are no providers at all, etc.
    • Requesting a picture by Artist Name on provider 1 did not return the result.
    • Requesting a picture by Artist Name on provider 2 did not return the result.
    • Requesting a picture by Artist Name on provider 3 returned a picture but without an artist ID.
    • Requesting a picture by Artist Name on provider 4 returned the picture but with the artist ID. The artist’s ID will be saved, and FH will no longer search for the ID on the sites for this Artist.
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    Thanks for explaining!

    This behaviour conflicts with the recent setting for MBID providers. An MBID for an artist is determined by a provider which actually was excluded.

    But I just saw that in my case there's an alias for Allure:
    Code:
    http://musicbrainz.org/ws/2/artist/?query="Tiësto pres. Allure"
    1590127536390.png


    It's good to see that the new alias search works! :)
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    I'll need some time for testing. I'll get back to you.
    The refresh on new downloaded Fanarts for an artist with existing Fanarts in the DB seems to work perfect now. Good job! (y)
    And the conversion from local to online Fanarts made the search processing very much faster.
    And MusicBrainz as single MBID provider works perfectly fine with thousands of tracks.
    I'm really impressed of your engagement and your professional support! Big thanks!
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    An idea to make the Fanart search processing even more faster is to mark online Fanarts with lower file size and similar Fanarts in the database to not download them again on future searches e. g.:
    Code:
    22-May-2020 07:12:41  Info [             Scraper]: Download: Fanart for Lionel Richie (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Music\Lionel Richie (2).jpg).
    22-May-2020 07:12:41 Debug [             Scraper]: Download: Image: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Music\Lionel Richie (2).jpg: Start...
    22-May-2020 07:12:42 Debug [               Utils]: Image: %TEMP%\Lionel Richie (2).jpg is 32% different from image C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Music\Lionel Richie (42198).jpg.
    22-May-2020 07:12:42 Debug [             Scraper]: Download: Image: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Music\Lionel Richie (2).jpg already exists in fanart folder, will be deleted...
    22-May-2020 07:12:42 Debug [             Scraper]: Download: Status: [Skip] Deleting temporary file: %TEMP%\Lionel Richie (2).jpg
    22-May-2020 07:12:42 Debug [             Scraper]: Download: Image for Lionel Richie (C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Music\Lionel Richie (2).jpg): Skipped.

    A similar approach as with Dummy Items where the MBID is cached.
     
    Last edited by a moderator:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,371
    Kyiv
    Home Country
    Ukraine Ukraine
    It’s much more complicated, but I’ll think if I’ve sat down I will find a quick and simple and elegant solution, then I’ll do it.
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    Good morning ajs,

    how are you? :)

    Another question:
    The artist name "Vera Klima feat. Max Mutzke" got split into to artist searches, "Vera Klima" and "Max Mutzke".
    For both the name was resolved to the correct MBID.
    For the first artist no Fanart was found, for the second one Fanart.
    In my FH configuration the separator " feat. " is defined.
    All seems correct to me but the Fanart of "Max Mutzke" is not displayed, only the default backgrounds, even when I stop and replay that song.
    What's wrong?

    Log:
    Code:
    23-May-2020 08:36:36 Debug [  FanartHandlerSetup]: OnPlayBackStarted: Window: 510 MediaType: Music LastFM: False - D:\Audio\Musik\Alben\Vera Klima\Play\07. Wir.mp3
    23-May-2020 08:36:36 Debug [     DatabaseManager]: --- Now Playing ---------------------
    23-May-2020 08:36:36  Info [     DatabaseManager]: --- NowPlaying --- Scrape for Artist(s): Vera Klima feat. Max Mutzke|Vera Klima Album: Play Year: 2019 Genre: 10s|Singer-Songwriter
    23-May-2020 08:36:36 Debug [     DatabaseManager]: --- NowPlaying: Scrape starting for Artist: Vera Klima Album: Play
    23-May-2020 08:36:36 Debug [     DatabaseManager]: Artist: Vera Klima images: 0 from: 100
    23-May-2020 08:36:36 Debug [             Scraper]: --- Fanart --- Vera Klima ---
    23-May-2020 08:36:36 Debug [             Scraper]: Trying to find Fanart for Artist: Vera Klima
    23-May-2020 08:36:36 Debug [             Scraper]: Common: MusicBrainz DB ID: 8204d336-b4ae-4267-98fe-17b2fba8aedc
    23-May-2020 08:36:36 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    23-May-2020 08:36:36 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Fanart): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Empty response HTML ... Skip.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Trying to find pictures for Artist (Fanart): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Extract URL - URLs Found: 0
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Find pictures for Artist (Fanart): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc complete. Found: 0 pictures.
    23-May-2020 08:36:37 Debug [             Scraper]: --- Thumb --- Vera Klima ---
    23-May-2020 08:36:37 Debug [             Scraper]: Trying to find Thumbs for Artist: Vera Klima
    23-May-2020 08:36:37 Debug [             Scraper]: Common: MusicBrainz DB ID: 8204d336-b4ae-4267-98fe-17b2fba8aedc
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Thumbs): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Empty response HTML ... Skip.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Trying to find pictures for Artist (Thumbs): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Extract URL - URLs Found: 0
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Find pictures for Artist (Thumbs): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc complete. Found: 0 pictures.
    23-May-2020 08:36:37 Debug [             Scraper]: Last.FM: Trying to find thumbnail for Artist: Vera Klima.
    23-May-2020 08:36:37 Debug [               Utils]: - GenreMusic [10s] not found. Skipped.
    23-May-2020 08:36:37 Debug [               Utils]: - GenreMusic [Singer-Songwriter] not found. Skipped.
    23-May-2020 08:36:37 Debug [             Scraper]: Last.FM: Thumb Mega for Artist: Vera Klima - https://lastfm.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png
    23-May-2020 08:36:37 Debug [             Scraper]: Last.FM: Find thumbnail for Artist: Vera Klima complete. Found: 0 pictures.
    23-May-2020 08:36:37  Info [     DatabaseManager]: No fanart found for Artist: Vera Klima.
    23-May-2020 08:36:37 Debug [             Scraper]: --- Thumb --- Vera Klima ---
    23-May-2020 08:36:37 Debug [             Scraper]: Trying to find Thumbs for Artist: Vera Klima
    23-May-2020 08:36:37 Debug [             Scraper]: Common: MusicBrainz DB ID: 8204d336-b4ae-4267-98fe-17b2fba8aedc
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Thumbs): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Empty response HTML ... Skip.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Trying to find pictures for Artist (Thumbs): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Extract URL - URLs Found: 0
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Find pictures for Artist (Thumbs): Vera Klima - 8204d336-b4ae-4267-98fe-17b2fba8aedc complete. Found: 0 pictures.
    23-May-2020 08:36:37 Debug [             Scraper]: Last.FM: Trying to find thumbnail for Artist: Vera Klima.
    23-May-2020 08:36:37 Debug [             Scraper]: Last.FM: Thumb Mega for Artist: Vera Klima - https://lastfm.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png
    23-May-2020 08:36:37 Debug [             Scraper]: Last.FM: Find thumbnail for Artist: Vera Klima complete. Found: 0 pictures.
    23-May-2020 08:36:37  Info [     DatabaseManager]: No Thumbs found for Artist: Vera Klima.
    23-May-2020 08:36:37 Debug [     DatabaseManager]: --- NowPlaying: Scrape starting for Artist: Max Mutzke Album: Play
    23-May-2020 08:36:37 Debug [     DatabaseManager]: Artist: Max Mutzke images: 1 from: 100
    23-May-2020 08:36:37 Debug [             Scraper]: --- Fanart --- Max Mutzke ---
    23-May-2020 08:36:37 Debug [             Scraper]: Trying to find Fanart for Artist: Max Mutzke
    23-May-2020 08:36:37 Debug [             Scraper]: Common: MusicBrainz DB ID: 6f2bfbc7-187a-4b02-8fde-77635d95e099
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Fanart): Max Mutzke - 6f2bfbc7-187a-4b02-8fde-77635d95e099.
    23-May-2020 08:36:37 Debug [             Scraper]: Fanart.TV: Empty response HTML ... Skip.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Trying to find pictures for Artist (Fanart): Max Mutzke - 6f2bfbc7-187a-4b02-8fde-77635d95e099.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Extract URL - URLs Found: 1
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Will not download fanart image as it already exist an image in your fanart database with this source image name.
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Find pictures for Artist (Fanart): Max Mutzke - 6f2bfbc7-187a-4b02-8fde-77635d95e099 complete. Found: 1 pictures.
    23-May-2020 08:36:37  Info [     DatabaseManager]: Artist: Max Mutzke has already 1 images. No more images were found for this artist.
    23-May-2020 08:36:37 Debug [             Scraper]: --- Thumb --- Max Mutzke - Play ---
    23-May-2020 08:36:37 Debug [             Scraper]: Trying to find Thumbs for Artist/Album: Max Mutzke - Play
    23-May-2020 08:36:37 Debug [             Scraper]: MusicBrainz: Trying to find MusicBrainz ID for Album: 6f2bfbc7-187a-4b02-8fde-77635d95e099:Max Mutzke - Play.
    23-May-2020 08:36:37 Debug [             Scraper]: MusicBrainz: Extract ID: Empty
    23-May-2020 08:36:37 Debug [             Scraper]: TheAudioDB: Trying to find pictures for Artist/Album (Thumbs): Max Mutzke - Play - .
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Extract URL - URLs Found: 0
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Extract ID: Empty
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Find pictures for Artist/Album (Thumbs): Max Mutzke - Play -  complete. Found: 0 pictures.
    23-May-2020 08:36:38 Debug [             Scraper]: Last.FM: Trying to find thumbnail for Artist/Album: Max Mutzke - Play.
    23-May-2020 08:36:38 Debug [             Scraper]: Last.FM: Find thumbnail for Artist/Album: Max Mutzke - Play complete. Found: 0 pictures.
    23-May-2020 08:36:38  Info [     DatabaseManager]: No Thumbs found for Artist: Max Mutzke Album: Play
    23-May-2020 08:36:38 Debug [     DatabaseManager]: --- NowPlaying: Scrape starting for Artist: Vera Klima feat. Max Mutzke Album: Play
    23-May-2020 08:36:38 Debug [     DatabaseManager]: Artist: Vera Klima feat. Max Mutzke images: 0 from: 100
    23-May-2020 08:36:38 Debug [             Scraper]: --- Fanart --- Vera Klima feat. Max Mutzke ---
    23-May-2020 08:36:38 Debug [             Scraper]: Trying to find Fanart for Artist: Vera Klima feat. Max Mutzke
    23-May-2020 08:36:38 Debug [             Scraper]: Common: MusicBrainz DB ID: 8204d336-b4ae-4267-98fe-17b2fba8aedc
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Fanart): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Empty response HTML ... Skip.
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Trying to find pictures for Artist (Fanart): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Extract URL - URLs Found: 0
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Find pictures for Artist (Fanart): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc complete. Found: 0 pictures.
    23-May-2020 08:36:38 Debug [             Scraper]: --- Thumb --- Vera Klima feat. Max Mutzke ---
    23-May-2020 08:36:38 Debug [             Scraper]: Trying to find Thumbs for Artist: Vera Klima feat. Max Mutzke
    23-May-2020 08:36:38 Debug [             Scraper]: Common: MusicBrainz DB ID: 8204d336-b4ae-4267-98fe-17b2fba8aedc
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Thumbs): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Empty response HTML ... Skip.
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Trying to find pictures for Artist (Thumbs): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Extract URL - URLs Found: 0
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Find pictures for Artist (Thumbs): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc complete. Found: 0 pictures.
    23-May-2020 08:36:38 Debug [             Scraper]: Last.FM: Trying to find thumbnail for Artist: Vera Klima feat. Max Mutzke.
    23-May-2020 08:36:38 Debug [             Scraper]: Last.FM: Find thumbnail for Artist: Vera Klima feat. Max Mutzke complete. Found: 0 pictures.
    23-May-2020 08:36:38  Info [     DatabaseManager]: No fanart found for Artist: Vera Klima feat. Max Mutzke.
    23-May-2020 08:36:38 Debug [             Scraper]: --- Thumb --- Vera Klima feat. Max Mutzke ---
    23-May-2020 08:36:38 Debug [             Scraper]: Trying to find Thumbs for Artist: Vera Klima feat. Max Mutzke
    23-May-2020 08:36:38 Debug [             Scraper]: Common: MusicBrainz DB ID: 8204d336-b4ae-4267-98fe-17b2fba8aedc
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Use personal API Key: True
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Trying to find pictures for Artist (Thumbs): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:38 Debug [             Scraper]: Fanart.TV: Empty response HTML ... Skip.
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Trying to find pictures for Artist (Thumbs): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc.
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Extract URL - URLs Found: 0
    23-May-2020 08:36:38 Debug [             Scraper]: TheAudioDB: Find pictures for Artist (Thumbs): Vera Klima feat. Max Mutzke - 8204d336-b4ae-4267-98fe-17b2fba8aedc complete. Found: 0 pictures.
    23-May-2020 08:36:38 Debug [             Scraper]: Last.FM: Trying to find thumbnail for Artist: Vera Klima feat. Max Mutzke.
    23-May-2020 08:36:38 Debug [             Scraper]: Last.FM: Find thumbnail for Artist: Vera Klima feat. Max Mutzke complete. Found: 0 pictures.
    23-May-2020 08:36:38  Info [     DatabaseManager]: No Thumbs found for Artist: Vera Klima feat. Max Mutzke.
    23-May-2020 08:36:38  Info [     DatabaseManager]: --- NowPlaying --- Scrape is done. Found. Artist(s): Vera Klima feat. Max Mutzke|Vera Klima Album: Play
    23-May-2020 08:36:38 Debug [               Utils]: - GenreMusic [10s] not found. Skipped.
    23-May-2020 08:36:38 Debug [               Utils]: - GenreMusic [Singer-Songwriter] not found. Skipped.
    23-May-2020 08:36:38 Debug [               Utils]: - GenreMusic [10s] not found. Skipped.
    23-May-2020 08:36:38 Debug [               Utils]: - GenreMusic [Singer-Songwriter] not found. Skipped.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,371
    Kyiv
    Home Country
    Ukraine Ukraine
    I think i make Blacklist (new option in Configurator) but not test ...
     

    Attachments

    • FanartHandler.dll.zip
      473.5 KB

    Users who are viewing this thread

    Top Bottom