mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2025-02-16 13:58:25 +00:00
Reduces unnecery searches with language filters
languageCode is not being used, since it checks for the full name language only when it creates a filter. Hence it's now removed to reduce searches.
This commit is contained in:
parent
77960b4f9e
commit
efbe9a4e0f
1 changed files with 2 additions and 2 deletions
|
@ -1807,10 +1807,10 @@ class Plex(Library):
|
|||
for part in media.parts:
|
||||
if filter_attr == "audio_language":
|
||||
for a in part.audioStreams():
|
||||
attrs.extend([a.language, a.languageCode])
|
||||
attrs.extend([a.language])
|
||||
if filter_attr == "subtitle_language":
|
||||
for s in part.subtitleStreams():
|
||||
attrs.extend([s.language, s.languageCode])
|
||||
attrs.extend([s.language])
|
||||
elif filter_attr in ["content_rating", "year", "rating"]:
|
||||
attrs = [getattr(item, filter_actual)]
|
||||
elif filter_attr in ["actor", "country", "director", "genre", "label", "producer", "writer",
|
||||
|
|
Loading…
Add table
Reference in a new issue