tmdb could of been a list

pull/240/head
meisnate12 4 years ago
parent 9aa68cd266
commit f8e10315d5

@ -313,7 +313,13 @@ class Convert:
if not tmdb_id: if not tmdb_id:
raise Failed(f"Unable to convert IMDb ID: {imdb_id} to TMDb ID") raise Failed(f"Unable to convert IMDb ID: {imdb_id} to TMDb ID")
if not anidb_id and not tvdb_id and tmdb_id and library.is_show: if not anidb_id and not tvdb_id and tmdb_id and library.is_show:
tvdb_id = self.tmdb_to_tvdb(tmdb_id) if isinstance(tmdb_id, list):
tvdb_id = []
for tmdb in tmdb_id:
if tmdb:
tvdb_id.append(self.tmdb_to_tvdb(tmdb))
else:
tvdb_id = self.tmdb_to_tvdb(tmdb_id)
if not tvdb_id: if not tvdb_id:
raise Failed(f"Unable to convert TMDb ID: {tmdb_id} to TVDb ID") raise Failed(f"Unable to convert TMDb ID: {tmdb_id} to TVDb ID")

@ -92,7 +92,7 @@ util.centered("| |_) | |/ _ \\ \\/ / | |\\/| |/ _ \\ __/ _` | | |\\/| |/ _` | '_
util.centered("| __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | ") util.centered("| __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | ")
util.centered("|_| |_|\\___/_/\\_\\ |_| |_|\\___|\\__\\__,_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_| ") util.centered("|_| |_|\\___/_/\\_\\ |_| |_|\\___|\\__\\__,_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_| ")
util.centered(" |___/ ") util.centered(" |___/ ")
util.centered(" Version: 1.9.0-beta3 ") util.centered(" Version: 1.9.0-beta4 ")
util.separator() util.separator()
def start(config_path, is_test, daily, requested_collections, requested_libraries, resume_from): def start(config_path, is_test, daily, requested_collections, requested_libraries, resume_from):

Loading…
Cancel
Save