[10] fix original_language for tv

This commit is contained in:
meisnate12 2022-03-08 15:44:20 -05:00
parent 02418ec9f2
commit 43f8cd0c69
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
1.16.0-develop9
1.16.0-develop10

View file

@ -282,7 +282,7 @@ class MetadataFile(DataFile):
for i, item in enumerate(all_items, 1):
logger.ghost(f"Processing: {i}/{len(all_items)} {item.title}")
tmdb_id, tvdb_id, imdb_id = library.get_ids(item)
tmdb_item = config.TMDb.get_item(item, tmdb_id, tvdb_id, imdb_id, is_movie=True)
tmdb_item = config.TMDb.get_item(item, tmdb_id, tvdb_id, imdb_id, is_movie=library.type == "Movie")
if tmdb_item and tmdb_item.collection and tmdb_item.collection.id not in exclude and tmdb_item.collection.name not in exclude:
auto_list[tmdb_item.collection.id] = tmdb_item.collection.name
logger.exorcise()