From 9041fee7ad1aacc0efb371c829e92a478e9e555a Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Thu, 9 Mar 2023 00:48:29 -0700 Subject: [PATCH] Format --- src/plex.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/plex.py b/src/plex.py index 335f67d..205d3ac 100644 --- a/src/plex.py +++ b/src/plex.py @@ -150,18 +150,15 @@ def find_video(plex_search, video_ids): if location.split("/")[-1] in video_ids["locations"]: return True - for guid in plex_search.guids: - guid_source = ( - re.search(r"(.*)://", guid.id).group(1).lower() - ) + guid_source = re.search(r"(.*)://", guid.id).group(1).lower() 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 guid_source in video_ids.keys(): if guid_id in video_ids[guid_source]: return True - + return False except Exception: return False