Skip to content

smartrobot/TMDB-Collection-Data-Retriever

 
 

Repository files navigation

This is a fork of TMDB Collection Data Retriever

This script collects metadata (summary and images) for your plex collection that were created based on TheMovieDB.

Changes:

  • Fixed type miss match bug by forcing types on plexapi.id

  • Added automation support in settings ini this allows the script to be used with tautilli

How does it work?

The script collects all collections from your movie library that do not have a summary yet. It does this by looking the movies within the collection. The movies have a reference to the collection on TheMovieDB. If a valid collection reference can be found it will pull the summary as well as download posters/background images (and use the same web calls as if you were manually updating it over the web interface).

A sample on a small test library looks like this:

Example

Attention

Currently this has only been tested with a couple of libraries, so I would recommend to do a database backup before starting the process (even though I don't think the script can do any real harm).

Installation

Step 1 Configuration

Add your server ip and your plex token to the setting.ini

https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

Additionally you can:

  1. enable/disable the preference to prefer local art (if you have a non english library and want to get images in that langauge)
  2. change the limit of posters/backgrounds you want to download

Step 2 Install requirements

  1. Install pipenv:
  1. Install dependencies:
  • pipenv install
  1. run:
  • pipenv run python collection_updater.py

    or

  • bash run_vdev.sh

Requirements

Python (tested with 3.9.5)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.7%
  • Shell 0.3%