RandomNinjaAtk / docker-lidarr-extended

lidarr-extended :: Lidarr application packaged with multiple scripts to provide additional functionality
GNU General Public License v3.0
276 stars 24 forks source link

[Feat]: Add Deezer artists / album artists / top track artists by country #191

Open steve1977 opened 1 year ago

steve1977 commented 1 year ago

Curious what Deezer lists are picked up when enabling this and how many artists are pulled? Just the #1 or top 10? Any chance to make this configurable to allows top-x? And even more important by country? For example, I'd love to automatically pull the #1 artist/albumartist/toptrackartists from Deezer Germany.

RandomNinjaAtk commented 1 year ago

What your asking for requires API support, and I'm not aware of any support for selecting region... If you can provide an API example, I can look into incorporating it...

steve1977 commented 1 year ago

What about this?

https://stackoverflow.com/questions/29748780/getting-most-listened-to-tracks-by-country-using-deezer-api

RandomNinjaAtk commented 1 year ago

Doesn't look like a solution there...

steve1977 commented 1 year ago

Seems my API knowledge is too little to even notice ;-) I thought the response below was the answer how to do it?

There is a way to make it you only have to search the top chart playlist for each country using the method curl --location --request GET https://api.deezer.com/search/playlist?q=Trending France.

*** In that query, you can change the country name with all the countries.

To get the top chart of the country you only have to get the first playlist and in that you will find the correct list of top chart songs following the link in the firsts track list item

RandomNinjaAtk commented 1 year ago

This is not a really viable solution and only grabs playlists, which means more trickery/workarounds would be needed. I will not be implementing this, if there was a API solution that actually worked, much like what is currently used, I would consider implementing it.

RandomNinjaAtk commented 1 year ago

If someone wants to take the time to write up a PR that works and doesn't break existing functionality. I'll consider incorporating it...

steve1977 commented 1 year ago

When enabling the deezer import feature in docker settings, how often does it pull artists? Only once upon docker restart or more frequently. I've been trying this now for a while and it seems that it only pulls at docker reboot. Not sure and not sufficient evidence to check.

RandomNinjaAtk commented 1 year ago

https://github.com/RandomNinjaAtk/docker-lidarr-extended/blob/main/root/etc/services.d/extended_auto_artist_adder/run