diff --git a/modules/plex.py b/modules/plex.py index 950be3ae..ada0a7b2 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -1837,8 +1837,9 @@ class Plex(Library): has_match = False for reg in filter_data: for name in attrs: - if re.compile(reg).search(name): - has_match = True + if isinstance(name, str): + if re.compile(reg).search(name): + has_match = True if has_match is False: return False elif (not list(set(filter_data) & set(attrs)) and modifier == "") \ diff --git a/plex_meta_manager.py b/plex_meta_manager.py index 29e8f952..5be0f7cd 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -240,7 +240,7 @@ def start(attrs): required_version = None if not is_docker and not is_linuxserver: try: - with open("requirements.txt", "r") as file: + with open(os.path.abspath(os.path.join(os.path.dirname(__file__), "requirements.txt")), "r") as file: required_version = next(ln.strip()[9:] for ln in file.readlines() if ln.strip().startswith("PlexAPI==")) except FileNotFoundError: logger.error(" File Error: requirements.txt not found")