pull/51/head
Luigi311 2023-03-09 00:48:29 -07:00
parent 9af6c9057c
commit 9041fee7ad
1 changed files with 2 additions and 5 deletions

View File

@ -150,18 +150,15 @@ def find_video(plex_search, video_ids):
if location.split("/")[-1] in video_ids["locations"]: if location.split("/")[-1] in video_ids["locations"]:
return True return True
for guid in plex_search.guids: for guid in plex_search.guids:
guid_source = ( guid_source = re.search(r"(.*)://", guid.id).group(1).lower()
re.search(r"(.*)://", guid.id).group(1).lower()
)
guid_id = re.search(r"://(.*)", guid.id).group(1) guid_id = re.search(r"://(.*)", guid.id).group(1)
# If show provider source and show provider id are in videos_shows_ids exactly, then the show is in the list # If show provider source and show provider id are in videos_shows_ids exactly, then the show is in the list
if guid_source in video_ids.keys(): if guid_source in video_ids.keys():
if guid_id in video_ids[guid_source]: if guid_id in video_ids[guid_source]:
return True return True
return False return False
except Exception: except Exception:
return False return False