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.
pull/1944/head
jz1 2 months ago committed by GitHub
parent 77960b4f9e
commit efbe9a4e0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save