mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2025-02-16 22:08:25 +00:00
fix beginswith
This commit is contained in:
parent
7f1593ecd8
commit
1f5b7b5818
1 changed files with 3 additions and 3 deletions
|
@ -867,7 +867,7 @@ class CollectionBuilder:
|
|||
else:
|
||||
values = self.config.TMDb.validate_tmdb_ids(method_data, method_name)
|
||||
if method_name.endswith("_details"):
|
||||
if method_name.beginswith(("tmdb_collection", "tmdb_movie", "tmdb_show")):
|
||||
if method_name.startswith(("tmdb_collection", "tmdb_movie", "tmdb_show")):
|
||||
item = self.config.TMDb.get_movie_show_or_collection(values[0], self.library.is_movie)
|
||||
if hasattr(item, "overview") and item.overview:
|
||||
self.summaries[method_name] = item.overview
|
||||
|
@ -875,13 +875,13 @@ class CollectionBuilder:
|
|||
self.backgrounds[method_name] = f"{self.config.TMDb.image_url}{item.backdrop_path}"
|
||||
if hasattr(item, "poster_path") and item.poster_path:
|
||||
self.posters[method_name] = f"{self.config.TMDb.image_url}{item.poster_path}"
|
||||
elif method_name.beginswith(("tmdb_actor", "tmdb_crew", "tmdb_director", "tmdb_producer", "tmdb_writer")):
|
||||
elif method_name.startswith(("tmdb_actor", "tmdb_crew", "tmdb_director", "tmdb_producer", "tmdb_writer")):
|
||||
item = self.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"{self.config.TMDb.image_url}{item.profile_path}"
|
||||
elif method_name.beginswith("tmdb_list"):
|
||||
elif method_name.startswith("tmdb_list"):
|
||||
item = self.config.TMDb.get_list(values[0])
|
||||
if hasattr(item, "description") and item.description:
|
||||
self.summaries[method_name] = item.description
|
||||
|
|
Loading…
Add table
Reference in a new issue