Code Monkey home page Code Monkey logo

scrape-plex-albumart's Introduction

scrape-plex-albumart

I needed a way to get accurate album art for Rockbox on my iPod6g. Seeing as I already had my library indexed in Plex and the albumart scraping has been very reliable I decided to export the album art this way.

If your music library on your Plex server looks something like this on-disk:

/mnt/Music/albums/artist/album/track.ext

Then this script will create a mirrored directory structure in its working directory like this:

/path/to/wherever/you/are/running/this/from/mnt/Music/albums/artist/album/folder.jpg

etc.

This allows you to manually merge the directory trees and you can decide if you want to overwrite files etc.

For my use case - I just rsync this album art tree to my iPod over USB.

I have not made any attempt to allow this to run from Windows (it assumes *NIX server and client) but could be made to work if you take care of the path separators.

Supports 2FA and will convert progressive scan images to baseline for compatibility with Rockbox.

Usage:

Create a .env file with the following contents (substituting real values):

plex_server = ''
plex_username = ''
plex_password = ''
plex_library = 'Music,Music DnB'

Note that plex_server is the server name and not the URL.

Requirements:

ImageMagick (identify and convert)

plexapi

python-dotenv

Update 2022:

This repo is now archived in favor of neofright/scrape-plex-albumart-bash

scrape-plex-albumart's People

Contributors

neofright avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.