πŸ“¦ neofright / scrape-plex-albumart-bash

β˜… 1 stars β‘‚ 0 forks πŸ‘ 1 watching
πŸ“₯ Clone https://github.com/neofright/scrape-plex-albumart-bash.git
HTTPS git clone https://github.com/neofright/scrape-plex-albumart-bash.git
SSH git clone git@github.com:neofright/scrape-plex-albumart-bash.git
CLI gh repo clone neofright/scrape-plex-albumart-bash
neofright neofright Fix path substitution... 16fb78a 2 years ago πŸ“ History
πŸ“‚ main View all commits β†’
πŸ“„ .gitattributes
πŸ“„ README.md
πŸ“„ README.md

scrape-plex-albumart-bash

I needed a way to get accurate album art for Rockbox on my iPod 6g. My library is indexed in Plex and the albumart scraping is more reliable than any other tool I have found.

I did this initially in Python here using the plexapi module and it worked well.

However, because my Plex account uses 2FA there was no easy way to run the script periodically with cron.

Because of this, I decided to read the Plex database directly instead.

Some direction was provided by bullwinkle’s how to title titles, or, sqlite in plex for fun and panic.

Usage:

Edit the contents of the variable:

$plex_dir

Behaviour:

By default, the script will place a folder.jpg in every album's directory if it doesn't already exist.

(Plex artwork is converted to jpeg, resized to 136x136 and set to interlaced.)

  • If you wish to copy the existing artwork without conversion set convert=0.
  • If you wish to do path substitution then look at the *_path_substitution variables.

Requirements:

ImageMagick (convert) sqlite3

Note that your Music library name(s) must contain the string 'Music' e.g. Music or DnB Music etc.