mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[19] check ids when multiple are received from plex
This commit is contained in:
parent
d0dfcef312
commit
4541e7a73d
3 changed files with 21 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
2.0.1-develop18
|
||||
2.0.1-develop19
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 180 KiB |
|
@ -378,9 +378,27 @@ class Library(ABC):
|
|||
id_type, main_id, imdb_id = self.config.Convert.get_id(item, self)
|
||||
if main_id:
|
||||
if id_type == "movie":
|
||||
if len(main_id) > 1:
|
||||
for _id in main_id:
|
||||
try:
|
||||
self.config.TMDb.get_movie(_id)
|
||||
self.movie_rating_key_map[key] = _id
|
||||
break
|
||||
except Failed:
|
||||
pass
|
||||
else:
|
||||
self.movie_rating_key_map[key] = main_id[0]
|
||||
util.add_dict_list(main_id, key, self.movie_map)
|
||||
elif id_type == "show":
|
||||
if len(main_id) > 1:
|
||||
for _id in main_id:
|
||||
try:
|
||||
self.config.Convert.tvdb_to_tmdb(_id, fail=True)
|
||||
self.show_rating_key_map[key] = _id
|
||||
break
|
||||
except Failed:
|
||||
pass
|
||||
else:
|
||||
self.show_rating_key_map[key] = main_id[0]
|
||||
util.add_dict_list(main_id, key, self.show_map)
|
||||
if imdb_id:
|
||||
|
|
Loading…
Reference in a new issue