Skip to content

b101marc/IMDBList2PlexCollection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IMDBList2PlexCollection

Simple script/standalone build to take an IMDB list, match the movies in your Plex Library and turn them into a collection.

This script is a modified version of this excellent script.

Thanks to /u/SwiftPanda16 for the original.

Disclaimer

I'm not a developer.....at all. My modifications are probably quite slap happy, but they work fine for me and have on a few different installs now with 0 problems. This doesn't mean it will for you. I'm not responsible for any heartaches caused when you decide to mess with your Plex server. Maybe spin up a small test library before deploying it on a big library if you're concerned about my lack of ability!

Configuration

Create or edit config.ini with your favourite text editor. Keep config.ini in the same working directory as the script.

ONLY "url=", "token=" and "library=" underneath the [plex] header need to be set for the script to work.

url= cannot end with a trailing slash - url=http://localhost:32400 & url=https://plex.woofwoof.wahoo are both examples of proper formatting, url=https://plex.woofwoof.wahoo/ is not.

token= can be found using this guide. A token can also be found in Tautulli or Ombi if you're using them. token=njkjdkHJJKAJKnjSAKJ is an example of correct formatting.

library= is pretty self explanatory. Multiple libraries supported, seperated by a comma ",". library=Movies and library=4K Movies,Movies,Kids Movies are examples of correct formatting.

They are the three variables most people will have to fill in.

If, and only IF you're using 'The Movie Database' agent instead of Plex Movie you'll also need to edit the apikey= variable located under the [tmdb] header.

Once complete it should look like

[plex]
url=http://PLEXSERVERURL:32400
token=REPLACEmeWITHyourTOKEN
library=Movies,Test Library,Kids

[tmdb]
apikey=Optional

Usage

If you are not using a standalone binary you'll need to install dependencies. Use pip to install the few listed requirements.

pip install -r requirements.txt OR "pip install lxml" "pip install plexapi" "pip install requests" "pip install tmdbv3api" in turn.

Run the script with "python imdb2collection.py" and follow the instructions. You'll want two things. A URL to the IMDB list you want to match (eg - https://www.imdb.com/list/ls064646512/) and to decide what you want the matching movies to be tagged as (eg - Pixar, Pixar Movies, Pixar Animations, etc - all 3 are valid entries when asked).

Note - You can only use the base URL (eg - https://www.imdb.com/list/ls064646512/) if there are any parameters after the last trailing slash, the program may not run properly. IMDB Searches are no longer supported.

That's it. The script should (hopefully!) run, it'll match movies from the IMDB list to your Movies Library and tag them into the collection you specified.

Issues

Probably. Don't blame me. Fork, fix and merge.

Enjoy

This one is simple.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%