mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
fix for audio_track_title
This commit is contained in:
parent
fcfc275ce2
commit
8c4cc5aa29
2 changed files with 11 additions and 6 deletions
|
@ -152,17 +152,21 @@ class PlexAPI:
|
|||
match = False
|
||||
break
|
||||
elif method == "audio_track_title":
|
||||
jailbreak = False
|
||||
for media in current.media:
|
||||
for part in media.parts:
|
||||
for audio in part.audioStreams():
|
||||
for check_title in filter_data:
|
||||
if (modifier == ".not" and check_title.lower() in audio.title.lower()) or (modifier != ".not" and check_title.lower() not in audio.title.lower()):
|
||||
match = False
|
||||
title = audio.title if audio.title else ""
|
||||
if check_title.lower() in title.lower():
|
||||
jailbreak = True
|
||||
break
|
||||
if match is False: break
|
||||
if match is False: break
|
||||
if match is False: break
|
||||
if match is False: break
|
||||
if jailbreak: break
|
||||
if jailbreak: break
|
||||
if jailbreak: break
|
||||
if (jailbreak and modifier == ".not") or (not jailbreak and modifier != ".not"):
|
||||
match = False
|
||||
break
|
||||
elif modifier in [".gte", ".lte"]:
|
||||
if method == "vote_count":
|
||||
tmdb_item = None
|
||||
|
|
|
@ -37,6 +37,7 @@ method_alias = {
|
|||
filter_alias = {
|
||||
"actor": "actors",
|
||||
"audio_language": "audio_language",
|
||||
"audio_track_title": "audio_track_title",
|
||||
"collection": "collections",
|
||||
"content_rating": "contentRating",
|
||||
"country": "countries",
|
||||
|
|
Loading…
Reference in a new issue