|
|
@ -1538,15 +1538,12 @@ class Plex(Library):
|
|
|
|
if year_titles.count(f"{item.title} ({item.year})") > 1:
|
|
|
|
if year_titles.count(f"{item.title} ({item.year})") > 1:
|
|
|
|
match_dict["title"] = item.title
|
|
|
|
match_dict["title"] = item.title
|
|
|
|
match_dict["year"] = item.year
|
|
|
|
match_dict["year"] = item.year
|
|
|
|
map_key = f"{item.title} ({item.year})"
|
|
|
|
if hasattr(item, "editionTitle") and item.editionTitle:
|
|
|
|
match_dict["blank_edition"] = True
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
if item.editionTitle:
|
|
|
|
|
|
|
|
map_key = f"{item.title} ({item.year}) [{item.editionTitle}]"
|
|
|
|
map_key = f"{item.title} ({item.year}) [{item.editionTitle}]"
|
|
|
|
match_dict["edition"] = item.editionTitle
|
|
|
|
match_dict["edition"] = item.editionTitle
|
|
|
|
match_dict["blank_edition"] = False
|
|
|
|
else:
|
|
|
|
except:
|
|
|
|
map_key = f"{item.title} ({item.year})"
|
|
|
|
dont_care = True
|
|
|
|
match_dict["blank_edition"] = True
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
map_key = f"{item.title} ({item.year})"
|
|
|
|
map_key = f"{item.title} ({item.year})"
|
|
|
|
match_dict["title"] = item.title
|
|
|
|
match_dict["title"] = item.title
|
|
|
@ -1822,10 +1819,10 @@ class Plex(Library):
|
|
|
|
for part in media.parts:
|
|
|
|
for part in media.parts:
|
|
|
|
if filter_attr == "audio_language":
|
|
|
|
if filter_attr == "audio_language":
|
|
|
|
for a in part.audioStreams():
|
|
|
|
for a in part.audioStreams():
|
|
|
|
attrs.extend([a.language])
|
|
|
|
attrs.extend([a.language, a.languageCode])
|
|
|
|
if filter_attr == "subtitle_language":
|
|
|
|
if filter_attr == "subtitle_language":
|
|
|
|
for s in part.subtitleStreams():
|
|
|
|
for s in part.subtitleStreams():
|
|
|
|
attrs.extend([s.language])
|
|
|
|
attrs.extend([s.language, s.languageCode])
|
|
|
|
elif filter_attr in ["content_rating", "year", "rating"]:
|
|
|
|
elif filter_attr in ["content_rating", "year", "rating"]:
|
|
|
|
attrs = [getattr(item, filter_actual)]
|
|
|
|
attrs = [getattr(item, filter_actual)]
|
|
|
|
elif filter_attr in ["actor", "country", "director", "genre", "label", "producer", "writer",
|
|
|
|
elif filter_attr in ["actor", "country", "director", "genre", "label", "producer", "writer",
|
|
|
|