Release Artist Slideshow addon (with skin and addon integration)
(2016-03-30, 22:27)zag Wrote: Can I ask how the metadata site lookup works for TheAudioDB?

Just looking at the statistics.... Artist.slideshow is hitting our site over 1.5 million times over a 24hr period on the searchtrack, searchalbum, album-mb methods. Thats over 6 million hits a day if you include all api methods using that api key.

That seems like a lot and i'm wondering if it can be improved in some way by calling the API less. I'm not sure its sustainable in the long term to have this much API usage for a single add-on. Am I right in thinking it downloads the artwork every single time as well?

What about caching or using the musicbrainz id only?

Yikes. That does seem high. Here's how it's suppose to be working:

1- AS gets the musicbrainz ID either from Kodi or by finding it on MusicBrainz. That is cached in a file, so after the initial lookup it'll never look that up again. If AS doesn't find one, it will try again in a couple of weeks.

2- If the user has selected to use TheAudioDB (and it's off by default), then AS asks for the artist bio (via artist-mb.php), albums (via album.php) for the given MusicBrainz ID (if no MusicBrainz ID, then AS does not query TheAudioDB). It then caches the artist bio and album info. AS won't check again those for updates for 2 weeks.

So far, so good. But I think I found the problem. AS is asking for and downloading a list of images every time. I could've sworn that it was honoring the cache timing for the bios and albums, but it is not. Let me look into fixing that.

I'm really sorry about this. I try to be a good API citizen, but in this case I flat out fell down on the job. Thanks for bringing it to my attention.
Reply


Messages In This Thread
New Test Version Available - by pkscout - 2012-03-08, 16:26
[No subject] - by mardup - 2012-03-10, 12:26
[No subject] - by pkscout - 2012-03-11, 01:35
RE: - by mardup - 2012-03-12, 17:50
RE: - by pkscout - 2012-03-13, 03:22
New Beta Version for Testing - by pkscout - 2012-07-13, 17:54
New Beta Version for Testing - by pkscout - 2012-07-14, 22:50
Pull Request for v1.4 Submitted - by pkscout - 2012-07-20, 23:01
New Beta Version for Testing - by pkscout - 2012-08-10, 03:18
New Frodo BETA Support Files - by pkscout - 2012-11-21, 06:20
RE: [RELEASE] Artist Slideshow 1.3.0 addon (with skin and addon integration) - by pkscout - 2016-03-30, 23:03
New 2.0.0 Beta Coming Soon - by pkscout - 2016-05-12, 02:54
Writing tips - by Parkerbup - 2017-02-03, 14:56
Add-on Artist Slideshow - by jo26 - 2014-08-08, 22:58
Logout Mark Read Team Forum Stats Members Help
Artist Slideshow addon (with skin and addon integration)5