tmdb module fixes

This commit is contained in:
meisnate12 2022-01-22 20:53:47 -05:00
parent a79056b92a
commit ce75a9b97c
3 changed files with 12 additions and 12 deletions

View file

@ -1 +1 @@
1.15.0
1.15.0-develop220122

View file

@ -217,20 +217,20 @@ class TMDb:
person = self.get_person(tmdb_id)
tmdb_name = person.name
if method == "tmdb_actor":
ids = [(i.id, "tmdb") for i in person.movie_cast]
ids.extend([(i.id, "tmdb_show") for i in person.tv_cast])
ids = [(i.movie.id, "tmdb") for i in person.movie_cast]
ids.extend([(i.tv_show.id, "tmdb_show") for i in person.tv_cast])
elif method == "tmdb_crew":
ids = [(i.id, "tmdb") for i in person.movie_crew]
ids.extend([(i.id, "tmdb_show") for i in person.tv_crew])
ids = [(i.movie.id, "tmdb") for i in person.movie_crew]
ids.extend([(i.tv_show.id, "tmdb_show") for i in person.tv_crew])
elif method == "tmdb_director":
ids = [(i.id, "tmdb") for i in person.movie_crew if i.department == "Directing"]
ids.extend([(i.id, "tmdb_show") for i in person.tv_crew])
ids = [(i.movie.id, "tmdb") for i in person.movie_crew if i.department == "Directing"]
ids.extend([(i.tv_show.id, "tmdb_show") for i in person.tv_crew if i.department == "Directing"])
elif method == "tmdb_writer":
ids = [(i.id, "tmdb") for i in person.movie_crew if i.department == "Writing"]
ids.extend([(i.id, "tmdb_show") for i in person.tv_crew])
ids = [(i.movie.id, "tmdb") for i in person.movie_crew if i.department == "Writing"]
ids.extend([(i.tv_show.id, "tmdb_show") for i in person.tv_crew if i.department == "Writing"])
elif method == "tmdb_producer":
ids = [(i.id, "tmdb") for i in person.movie_crew if i.department == "Production"]
ids.extend([(i.id, "tmdb_show") for i in person.tv_crew])
ids = [(i.movie.id, "tmdb") for i in person.movie_crew if i.department == "Production"]
ids.extend([(i.tv_show.id, "tmdb_show") for i in person.tv_crew if i.department == "Production"])
else:
raise Failed(f"TMDb Error: Method {method} not supported")
if len(ids) > 0:

View file

@ -1,5 +1,5 @@
PlexAPI==4.8.0
tmdbapis==0.1.4
tmdbapis==0.1.6
arrapi==1.3.0
lxml==4.7.1
requests==2.27.1