added _deatils to the tmdb people builders

pull/76/head
meisnate12 4 years ago
parent 8022b629d4
commit b414cce21a

@ -532,6 +532,12 @@ class CollectionBuilder:
self.backgrounds[method_name] = f"{config.TMDb.image_url}{item.backdrop_path}" self.backgrounds[method_name] = f"{config.TMDb.image_url}{item.backdrop_path}"
if hasattr(item, "poster_path") and item.poster_path: if hasattr(item, "poster_path") and item.poster_path:
self.posters[method_name] = f"{config.TMDb.image_url}{item.poster_path}" self.posters[method_name] = f"{config.TMDb.image_url}{item.poster_path}"
elif method_name in ["tmdb_actor_details", "tmdb_crew_details", "tmdb_director_details", "tmdb_producer_details", "tmdb_writer_details"]:
item = config.TMDb.get_person(values[0])
if hasattr(item, "biography") and item.biography:
self.summaries[method_name] = item.biography
if hasattr(item, "profile_path") and item.profile_path:
self.posters[method_name] = f"{config.TMDb.image_url}{item.profile_path}"
else: else:
item = config.TMDb.get_list(values[0]) item = config.TMDb.get_list(values[0])
if hasattr(item, "description") and item.description: if hasattr(item, "description") and item.description:
@ -737,6 +743,11 @@ class CollectionBuilder:
elif "tmdb_person" in self.summaries: summary = get_summary("tmdb_person", self.summaries) elif "tmdb_person" in self.summaries: summary = get_summary("tmdb_person", self.summaries)
elif "tmdb_collection_details" in self.summaries: summary = get_summary("tmdb_collection_details", self.summaries) elif "tmdb_collection_details" in self.summaries: summary = get_summary("tmdb_collection_details", self.summaries)
elif "tmdb_list_details" in self.summaries: summary = get_summary("tmdb_list_details", self.summaries) elif "tmdb_list_details" in self.summaries: summary = get_summary("tmdb_list_details", self.summaries)
elif "tmdb_actor_details" in self.summaries: summary = get_summary("tmdb_actor_details", self.summaries)
elif "tmdb_crew_details" in self.summaries: summary = get_summary("tmdb_crew_details", self.summaries)
elif "tmdb_director_details" in self.summaries: summary = get_summary("tmdb_director_details", self.summaries)
elif "tmdb_producer_details" in self.summaries: summary = get_summary("tmdb_producer_details", self.summaries)
elif "tmdb_writer_details" in self.summaries: summary = get_summary("tmdb_writer_details", self.summaries)
elif "tmdb_movie_details" in self.summaries: summary = get_summary("tmdb_movie_details", self.summaries) elif "tmdb_movie_details" in self.summaries: summary = get_summary("tmdb_movie_details", self.summaries)
elif "tmdb_show_details" in self.summaries: summary = get_summary("tmdb_show_details", self.summaries) elif "tmdb_show_details" in self.summaries: summary = get_summary("tmdb_show_details", self.summaries)
else: summary = None else: summary = None
@ -837,10 +848,15 @@ class CollectionBuilder:
elif "tmdb_poster" in self.posters: set_image("tmdb_poster", self.posters) elif "tmdb_poster" in self.posters: set_image("tmdb_poster", self.posters)
elif "tmdb_profile" in self.posters: set_image("tmdb_profile", self.posters) elif "tmdb_profile" in self.posters: set_image("tmdb_profile", self.posters)
elif "asset_directory" in self.posters: set_image("asset_directory", self.posters) elif "asset_directory" in self.posters: set_image("asset_directory", self.posters)
elif "tmdb_person" in self.posters: set_image("tmdb_person", self.posters)
elif "tmdb_collection_details" in self.posters: set_image("tmdb_collection", self.posters) elif "tmdb_collection_details" in self.posters: set_image("tmdb_collection", self.posters)
elif "tmdb_actor_details" in self.posters: set_image("tmdb_actor_details", self.posters)
elif "tmdb_crew_details" in self.posters: set_image("tmdb_crew_details", self.posters)
elif "tmdb_director_details" in self.posters: set_image("tmdb_director_details", self.posters)
elif "tmdb_producer_details" in self.posters: set_image("tmdb_producer_details", self.posters)
elif "tmdb_writer_details" in self.posters: set_image("tmdb_writer_details", self.posters)
elif "tmdb_movie_details" in self.posters: set_image("tmdb_movie", self.posters) elif "tmdb_movie_details" in self.posters: set_image("tmdb_movie", self.posters)
elif "tmdb_show_details" in self.posters: set_image("tmdb_show", self.posters) elif "tmdb_show_details" in self.posters: set_image("tmdb_show", self.posters)
elif "tmdb_person" in self.posters: set_image("tmdb_person", self.posters)
else: logger.info("No poster to update") else: logger.info("No poster to update")
logger.info("") logger.info("")

@ -148,11 +148,11 @@ class Config:
self.Cache = None self.Cache = None
self.general["asset_directory"] = check_for_attribute(self.data, "asset_directory", parent="settings", var_type="list_path", default=[os.path.join(default_dir, "assets")]) self.general["asset_directory"] = check_for_attribute(self.data, "asset_directory", parent="settings", var_type="list_path", default=[os.path.join(default_dir, "assets")])
self.general["sync_mode"] = check_for_attribute(self.data, "sync_mode", parent="settings", default="append", test_list=["append", "sync"], options=" append (Only Add Items to the Collection)\n sync (Add & Remove Items from the Collection)") self.general["sync_mode"] = check_for_attribute(self.data, "sync_mode", parent="settings", default="append", test_list=["append", "sync"], options=" append (Only Add Items to the Collection)\n sync (Add & Remove Items from the Collection)")
self.general["run_again_delay"] = check_for_attribute(self.data, "run_again_delay", parent="settings", var_type="int", default=0)
self.general["show_unmanaged"] = check_for_attribute(self.data, "show_unmanaged", parent="settings", var_type="bool", default=True) self.general["show_unmanaged"] = check_for_attribute(self.data, "show_unmanaged", parent="settings", var_type="bool", default=True)
self.general["show_filtered"] = check_for_attribute(self.data, "show_filtered", parent="settings", var_type="bool", default=False) self.general["show_filtered"] = check_for_attribute(self.data, "show_filtered", parent="settings", var_type="bool", default=False)
self.general["show_missing"] = check_for_attribute(self.data, "show_missing", parent="settings", var_type="bool", default=True) self.general["show_missing"] = check_for_attribute(self.data, "show_missing", parent="settings", var_type="bool", default=True)
self.general["save_missing"] = check_for_attribute(self.data, "save_missing", parent="settings", var_type="bool", default=True) self.general["save_missing"] = check_for_attribute(self.data, "save_missing", parent="settings", var_type="bool", default=True)
self.general["run_again_delay"] = check_for_attribute(self.data, "run_again_delay", parent="settings", var_type="int", default=0)
util.separator() util.separator()

@ -116,11 +116,14 @@ pretty_names = {
"tautulli_popular": "Tautulli Popular", "tautulli_popular": "Tautulli Popular",
"tautulli_watched": "Tautulli Watched", "tautulli_watched": "Tautulli Watched",
"tmdb_actor": "TMDb Actor", "tmdb_actor": "TMDb Actor",
"tmdb_actor_details": "TMDb Actor",
"tmdb_collection": "TMDb Collection", "tmdb_collection": "TMDb Collection",
"tmdb_collection_details": "TMDb Collection", "tmdb_collection_details": "TMDb Collection",
"tmdb_company": "TMDb Company", "tmdb_company": "TMDb Company",
"tmdb_crew": "TMDb Crew", "tmdb_crew": "TMDb Crew",
"tmdb_crew_details": "TMDb Crew",
"tmdb_director": "TMDb Director", "tmdb_director": "TMDb Director",
"tmdb_director_details": "TMDb Director",
"tmdb_discover": "TMDb Discover", "tmdb_discover": "TMDb Discover",
"tmdb_keyword": "TMDb Keyword", "tmdb_keyword": "TMDb Keyword",
"tmdb_list": "TMDb List", "tmdb_list": "TMDb List",
@ -132,12 +135,14 @@ pretty_names = {
"tmdb_person": "TMDb Person", "tmdb_person": "TMDb Person",
"tmdb_popular": "TMDb Popular", "tmdb_popular": "TMDb Popular",
"tmdb_producer": "TMDb Producer", "tmdb_producer": "TMDb Producer",
"tmdb_producer_details": "TMDb Producer",
"tmdb_show": "TMDb Show", "tmdb_show": "TMDb Show",
"tmdb_show_details": "TMDb Show", "tmdb_show_details": "TMDb Show",
"tmdb_top_rated": "TMDb Top Rated", "tmdb_top_rated": "TMDb Top Rated",
"tmdb_trending_daily": "TMDb Trending Daily", "tmdb_trending_daily": "TMDb Trending Daily",
"tmdb_trending_weekly": "TMDb Trending Weekly", "tmdb_trending_weekly": "TMDb Trending Weekly",
"tmdb_writer": "TMDb Writer", "tmdb_writer": "TMDb Writer",
"tmdb_writer_details": "TMDb Writer",
"trakt_list": "Trakt List", "trakt_list": "Trakt List",
"trakt_trending": "Trakt Trending", "trakt_trending": "Trakt Trending",
"trakt_watchlist": "Trakt Watchlist", "trakt_watchlist": "Trakt Watchlist",
@ -227,11 +232,14 @@ all_lists = [
"tautulli_popular", "tautulli_popular",
"tautulli_watched", "tautulli_watched",
"tmdb_actor", "tmdb_actor",
"tmdb_actor_details",
"tmdb_collection", "tmdb_collection",
"tmdb_collection_details", "tmdb_collection_details",
"tmdb_company", "tmdb_company",
"tmdb_crew", "tmdb_crew",
"tmdb_crew_details",
"tmdb_director", "tmdb_director",
"tmdb_director_details",
"tmdb_discover", "tmdb_discover",
"tmdb_keyword", "tmdb_keyword",
"tmdb_list", "tmdb_list",
@ -242,12 +250,14 @@ all_lists = [
"tmdb_now_playing", "tmdb_now_playing",
"tmdb_popular", "tmdb_popular",
"tmdb_producer", "tmdb_producer",
"tmdb_producer_details",
"tmdb_show", "tmdb_show",
"tmdb_show_details", "tmdb_show_details",
"tmdb_top_rated", "tmdb_top_rated",
"tmdb_trending_daily", "tmdb_trending_daily",
"tmdb_trending_weekly", "tmdb_trending_weekly",
"tmdb_writer", "tmdb_writer",
"tmdb_writer_details",
"trakt_list", "trakt_list",
"trakt_trending", "trakt_trending",
"trakt_watchlist", "trakt_watchlist",
@ -341,11 +351,14 @@ count_lists = [
] ]
tmdb_lists = [ tmdb_lists = [
"tmdb_actor", "tmdb_actor",
"tmdb_actor_details",
"tmdb_collection", "tmdb_collection",
"tmdb_collection_details", "tmdb_collection_details",
"tmdb_company", "tmdb_company",
"tmdb_crew", "tmdb_crew",
"tmdb_crew_details",
"tmdb_director", "tmdb_director",
"tmdb_director_details",
"tmdb_discover", "tmdb_discover",
"tmdb_keyword", "tmdb_keyword",
"tmdb_list", "tmdb_list",
@ -356,20 +369,25 @@ tmdb_lists = [
"tmdb_now_playing", "tmdb_now_playing",
"tmdb_popular", "tmdb_popular",
"tmdb_producer", "tmdb_producer",
"tmdb_producer_details",
"tmdb_show", "tmdb_show",
"tmdb_show_details", "tmdb_show_details",
"tmdb_top_rated", "tmdb_top_rated",
"tmdb_trending_daily", "tmdb_trending_daily",
"tmdb_trending_weekly", "tmdb_trending_weekly",
"tmdb_writer" "tmdb_writer",
"tmdb_writer_details"
] ]
tmdb_type = { tmdb_type = {
"tmdb_actor": "Person", "tmdb_actor": "Person",
"tmdb_actor_details": "Person",
"tmdb_collection": "Collection", "tmdb_collection": "Collection",
"tmdb_collection_details": "Collection", "tmdb_collection_details": "Collection",
"tmdb_company": "Company", "tmdb_company": "Company",
"tmdb_crew": "Person", "tmdb_crew": "Person",
"tmdb_crew_details": "Person",
"tmdb_director": "Person", "tmdb_director": "Person",
"tmdb_director_details": "Person",
"tmdb_keyword": "Keyword", "tmdb_keyword": "Keyword",
"tmdb_list": "List", "tmdb_list": "List",
"tmdb_list_details": "List", "tmdb_list_details": "List",
@ -378,9 +396,11 @@ tmdb_type = {
"tmdb_network": "Network", "tmdb_network": "Network",
"tmdb_person": "Person", "tmdb_person": "Person",
"tmdb_producer": "Person", "tmdb_producer": "Person",
"tmdb_producer_details": "Person",
"tmdb_show": "Show", "tmdb_show": "Show",
"tmdb_show_details": "Show", "tmdb_show_details": "Show",
"tmdb_writer": "Person" "tmdb_writer": "Person",
"tmdb_writer_details": "Person"
} }
all_filters = [ all_filters = [
"actor", "actor.not", "actor", "actor.not",

Loading…
Cancel
Save