2020-06-02, 12:10
(2020-06-02, 09:19)peque Wrote:Ok. I know nothing about python, but I managed to find the place to add a "time.sleep(1)" and thus control download speed... BUT, I've tested some sleep values, and all of them end with a "ban" from fanart.tv. If I cancel script execution and restart it, it works again for some downloads, so I assume I should find a way to close and open the thread every few seconds... or... uglyer but also possible, I should find a way to automate that script "cancel/restart"...(2020-06-02, 05:05)Milhouse Wrote:(2020-06-01, 23:27)peque Wrote: Hi all,
I've done a clean install of Kodi, restoring all my userdata config BUT textures13.db and /Thumbnails directory, as they're not backed up to save time/space, and as they should be recreate with no problem.
Now I want to recreate all my artwork by doing "texturecache.py C". The thing is that fanart.tv is just letting me download a few images, and after that I get 503 errors. If I stop script and restart it again, I can download a few more... and so.
Is there any way to "slow down" download process so fanart.tv doesn't temporarily "ban" me? I've already set up only one thread for that site, so I don't know what more I can do.
Thanks a lot.
Unfortunately not - this is another of the problems when using remote content.
This is why fanart.tv requests keeps returning 503 error every now and then:
https://twitter.com/fanartdottv/status/1...6035563520
The question is: could the script be modified somehow to respect this max speed of 3 requests a second? I assumed that 1 thread max could slow down the process... but I see it's not the case. Could it just add a config option to limit requests at 1/second for example?
I see it was an error to delete all my thumbnails...