mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 20:43:07 +00:00
[48] reload subfilter items
This commit is contained in:
parent
87ab93076f
commit
1af60977c7
4 changed files with 12 additions and 9 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.16.5-develop47
|
||||
1.16.5-develop48
|
||||
|
|
|
@ -169,7 +169,6 @@ class CollectionBuilder:
|
|||
self.libraries = []
|
||||
self.playlist = library is None
|
||||
self.overlay = overlay
|
||||
self.asset_directory = metadata.asset_directory if metadata.asset_directory else self.library.asset_directory
|
||||
methods = {m.lower(): m for m in self.data}
|
||||
if self.playlist:
|
||||
self.type = "playlist"
|
||||
|
@ -329,6 +328,8 @@ class CollectionBuilder:
|
|||
else:
|
||||
self.libraries.append(self.library)
|
||||
|
||||
self.asset_directory = metadata.asset_directory if metadata.asset_directory else self.library.asset_directory
|
||||
|
||||
self.language = self.library.Plex.language
|
||||
self.details = {
|
||||
"show_filtered": self.library.show_filtered,
|
||||
|
|
|
@ -282,6 +282,7 @@ class Overlays:
|
|||
return self.config.TMDb.get_movie(self.library.movie_rating_key_map[item.ratingKey]).poster_url
|
||||
elif isinstance(item, (Show, Season, Episode)):
|
||||
check_key = item.ratingKey if isinstance(item, Show) else item.show().ratingKey
|
||||
if check_key in self.library.show_rating_key_map:
|
||||
tmdb_id = self.config.Convert.tvdb_to_tmdb(self.library.show_rating_key_map[check_key])
|
||||
if isinstance(item, Show) and item.ratingKey in self.library.show_rating_key_map:
|
||||
return self.config.TMDb.get_show(tmdb_id).poster_url
|
||||
|
|
|
@ -1101,6 +1101,7 @@ class Plex(Library):
|
|||
return True
|
||||
|
||||
def check_filter(self, item, filter_attr, modifier, filter_final, filter_data, current_time):
|
||||
self.reload(item)
|
||||
filter_actual = attribute_translation[filter_attr] if filter_attr in attribute_translation else filter_attr
|
||||
if isinstance(item, Movie):
|
||||
item_type = "movie"
|
||||
|
|
Loading…
Reference in a new issue