pull/211/head
meisnate12 4 years ago
parent 0504870429
commit 342625de53

@ -1,5 +1,5 @@
# Plex Meta Manager # Plex Meta Manager
#### Version 1.7.2 #### Version 1.8.0
The original concept for Plex Meta Manager is [Plex Auto Collections](https://github.com/mza921/Plex-Auto-Collections), but this is rewritten from the ground up to be able to include a scheduler, metadata edits, multiple libraries, and logging. Plex Meta Manager is a Python 3 script that can be continuously run using YAML configuration files to update on a schedule the metadata of the movies, shows, and collections in your libraries as well as automatically build collections based on various methods all detailed in the wiki. Some collection examples that the script can automatically build and update daily include Plex Based Searches like actor, genre, or studio collections or Collections based on TMDb, IMDb, Trakt, TVDb, AniDB, or MyAnimeList lists and various other services. The original concept for Plex Meta Manager is [Plex Auto Collections](https://github.com/mza921/Plex-Auto-Collections), but this is rewritten from the ground up to be able to include a scheduler, metadata edits, multiple libraries, and logging. Plex Meta Manager is a Python 3 script that can be continuously run using YAML configuration files to update on a schedule the metadata of the movies, shows, and collections in your libraries as well as automatically build collections based on various methods all detailed in the wiki. Some collection examples that the script can automatically build and update daily include Plex Based Searches like actor, genre, or studio collections or Collections based on TMDb, IMDb, Trakt, TVDb, AniDB, or MyAnimeList lists and various other services.

@ -1,6 +1,6 @@
## This file is a template remove the .template to use the file ## This file is a template remove the .template to use the file
libraries: # Library Names must have a colon (:) placed after them libraries: # Library mappings must have a colon (:) placed after them
Movies: Movies:
TV Shows: TV Shows:
Anime: Anime:
@ -8,6 +8,8 @@ settings: # Can be individually specified
cache: true cache: true
cache_expiration: 60 cache_expiration: 60
asset_directory: config/assets asset_directory: config/assets
asset_folders: true
assets_for_all: false
sync_mode: append sync_mode: append
show_unmanaged: true show_unmanaged: true
show_filtered: false show_filtered: false

@ -134,32 +134,25 @@ class ArmsAPI:
from_cache = tmdb_id is not None or tvdb_id is not None from_cache = tmdb_id is not None or tvdb_id is not None
if not tmdb_id and not tvdb_id and self.config.TMDb: if not tmdb_id and not tvdb_id and self.config.TMDb:
try: try: tmdb_id = self.config.TMDb.convert_imdb_to_tmdb(imdb_id)
tmdb_id = self.config.TMDb.convert_imdb_to_tmdb(imdb_id) except Failed: pass
except Failed:
pass
if not tmdb_id and not tvdb_id and self.config.TMDb: if not tmdb_id and not tvdb_id and self.config.TMDb:
try: try: tvdb_id = self.config.TMDb.convert_imdb_to_tvdb(imdb_id)
tvdb_id = self.config.TMDb.convert_imdb_to_tvdb(imdb_id) except Failed: pass
except Failed:
pass
if not tmdb_id and not tvdb_id and self.config.Trakt: if not tmdb_id and not tvdb_id and self.config.Trakt:
try: try: tmdb_id = self.config.Trakt.convert_imdb_to_tmdb(imdb_id)
tmdb_id = self.config.Trakt.convert_imdb_to_tmdb(imdb_id) except Failed: pass
except Failed:
pass
if not tmdb_id and not tvdb_id and self.config.Trakt: if not tmdb_id and not tvdb_id and self.config.Trakt:
try: try: tvdb_id = self.config.Trakt.convert_imdb_to_tvdb(imdb_id)
tvdb_id = self.config.Trakt.convert_imdb_to_tvdb(imdb_id) except Failed: pass
except Failed: if tmdb_id and not from_cache:
pass try: self.config.TMDb.get_movie(tmdb_id)
try: except Failed: tmdb_id = None
if tmdb_id and not from_cache: self.config.TMDb.get_movie(tmdb_id) if tvdb_id and not from_cache:
except Failed: tmdb_id = None try: self.config.TVDb.get_series(language, tvdb_id)
try: except Failed: tvdb_id = None
if tvdb_id and not from_cache: self.config.TVDb.get_series(language, tvdb_id) if not tmdb_id and not tvdb_id:
except Failed: tvdb_id = None raise Failed(f"Arms Error: No TMDb ID or TVDb ID found for IMDb: {imdb_id}")
if not tmdb_id and not tvdb_id: raise Failed(f"Arms Error: No TMDb ID or TVDb ID found for IMDb: {imdb_id}")
if self.config.Cache: if self.config.Cache:
if tmdb_id and update_tmdb is not False: if tmdb_id and update_tmdb is not False:
self.config.Cache.update_imdb("movie", update_tmdb, imdb_id, tmdb_id) self.config.Cache.update_imdb("movie", update_tmdb, imdb_id, tmdb_id)

@ -91,7 +91,7 @@ util.centered("| |_) | |/ _ \\ \\/ / | |\\/| |/ _ \\ __/ _` | | |\\/| |/ _` | '_
util.centered("| __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | ") util.centered("| __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | ")
util.centered("|_| |_|\\___/_/\\_\\ |_| |_|\\___|\\__\\__,_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_| ") util.centered("|_| |_|\\___/_/\\_\\ |_| |_|\\___|\\__\\__,_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_| ")
util.centered(" |___/ ") util.centered(" |___/ ")
util.centered(" Version: 1.7.2-Beta11 ") util.centered(" Version: 1.8.0 ")
util.separator() util.separator()
if my_tests: if my_tests:

Loading…
Cancel
Save