mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 04:23:08 +00:00
[44] Merge remote-tracking branch 'jz1/regextagattributefixandlanguage' into nightly
This commit is contained in:
commit
f5ba6f5aad
2 changed files with 3 additions and 3 deletions
|
@ -2649,7 +2649,7 @@ class CollectionBuilder:
|
|||
for name, key in names:
|
||||
if name not in used and re.compile(reg).search(name):
|
||||
used.append(name)
|
||||
valid_list.append((name, key) if plex_search else key)
|
||||
valid_list.append((name, key) if plex_search else name)
|
||||
if not valid_list:
|
||||
error = f"Plex Error: {attribute}: No matches found with regex pattern {data}"
|
||||
if self.details["show_options"]:
|
||||
|
|
|
@ -1819,10 +1819,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…
Reference in a new issue