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

horned_reaper

Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    @horned_reaper Add you personal API key to FH and wait 48 hour :) Get an API key - fanart.tv

    You're right, after setting the API key and wait 48 hours the Fanart was downloaded.
    After the upload approval by Fanart.TV I needed to ask a moderator to refresh the entry via the forum. After the refresh it took 48 hours for the Fanart to appear.
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    New Fanarts are now displayed after download, at the first playback. (y)

    Just a minor issue: After the download the new Fanarts are immediately shown for a short time, afterwards the configured period of time until the next Fanart display applies again. In more detail:
    1. The playback starts
    2. The cached Fanarts are shown consecutively for the configured period of time e. g. 20 seconds.
    3. New Fanarts get downloaded in the background
    4. When a download is finished the new Fanart is immediately displayed, the configured period of time until the next Fanart display does not apply.
    5. Afterwards the Fanart display continues normally, all Fanarts are shown for the configured time.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,625
    10,554
    Kyiv
    Home Country
    Ukraine Ukraine
    this is how the trigger refresh works ...

    --
    WBR, ajs :):whistle::coffee:
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,625
    10,554
    Kyiv
    Home Country
    Ukraine Ukraine
    Can it be adjusted?
    There is a double-edged sword, if there is no Fanart for the Artist, and we downloaded a new one, then we must immediately show it, if there is Fanart then we should wait, and then show it. But at the trigger trigger stage, we don’t know if there is Fanart for the Artist or not.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,625
    10,554
    Kyiv
    Home Country
    Ukraine Ukraine
    Can the new downloaded Fanarts not simply put to the end of the existing sequence (list)?
    No, it won’t work out, separate parts of the code, one fills the database, the second works with the cache selected from the database, in order to update the cache, you need to re-read all the records from the database and check them. :)
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    Can the existing database be deleted and recreated when all downloads are complete?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,625
    10,554
    Kyiv
    Home Country
    Ukraine Ukraine
    Can the existing database be deleted and recreated when all downloads are complete?
    Yes, then FH recreate empty DB and will try to restore all entries from files in directories. :)
     
    Last edited:

    Users who are viewing this thread

    Top Bottom