rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.39k stars 600 forks source link

change artwork provider to fanart.tv #3214

Open nopoz opened 5 years ago

nopoz commented 5 years ago

Changes artwork provider to fanart.tv

Fixes #3207

last.fm has changed their API so artwork can no longer be retrieved. Only data can be pulled.

When the age of the existing artwork cache expires, headphones tries to grab new artwork from last.fm - which it can't. This has resulted in headphones instances hammering the last.fm API and reaching the API query limit. This change should reduce the amount of API calls to last.fm.

nopoz commented 5 years ago

In order for headphones to pull new artwork for artists/albums that already exist in your db, you might need to clear the headphones.db of existing thumb and album urls, and clear the cache/artwork/ directory of all old artwork files.

  1. stop headphones daemon

  2. open your database:

sqlite3 headphones.db
  1. while in sqlite interactive mode, set all artwork column data to null (remove it)
update albums set ArtworkURL=null;
update albums set ThumbURL=null;
update artists set ArtworkURL=null;
update artists set ThumbURL=null;
  1. delete all old artwork files in the cache/artwork/ directory

  2. start headphones daemon back up

Or just delete your headphones.db file and start from scratch - up to you!