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