mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[13] fix list index error
This commit is contained in:
parent
24beeb8c4d
commit
569826087d
2 changed files with 3 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.16.1-develop12
|
||||
1.16.1-develop13
|
||||
|
|
|
@ -110,7 +110,7 @@ class TMDbMovie(TMDBObj):
|
|||
|
||||
self.original_title = data["original_title"] if isinstance(data, dict) else data.original_title
|
||||
self.release_date = data["release_date"] if isinstance(data, dict) else data.release_date
|
||||
self.studio = data["studio"] if isinstance(data, dict) else data.companies[0].name
|
||||
self.studio = data["studio"] if isinstance(data, dict) else data.companies[0].name if data.companies else None
|
||||
self.collection_id = data["collection_id"] if isinstance(data, dict) else data.collection.id if data.collection else None
|
||||
self.collection_name = data["collection_name"] if isinstance(data, dict) else data.collection.name if data.collection else None
|
||||
|
||||
|
@ -134,7 +134,7 @@ class TMDbShow(TMDBObj):
|
|||
self.last_air_date = data["last_air_date"] if isinstance(data, dict) else data.last_air_date
|
||||
self.status = data["status"] if isinstance(data, dict) else data.status
|
||||
self.type = data["type"] if isinstance(data, dict) else data.type
|
||||
self.studio = data["studio"] if isinstance(data, dict) else data.networks[0].name
|
||||
self.studio = data["studio"] if isinstance(data, dict) else data.networks[0].name if data.networks else None
|
||||
self.tvdb_id = data["tvdb_id"] if isinstance(data, dict) else data.tvdb_id
|
||||
loop = data["countries"].split("|") if isinstance(data, dict) else data.origin_countries
|
||||
self.countries = [TMDbCountry(c) for c in loop]
|
||||
|
|
Loading…
Reference in a new issue