[44] Merge remote-tracking branch 'jz1/nightly' into nightly

This commit is contained in:
meisnate12 2024-03-26 12:31:01 -04:00
commit b4cd72606a
2 changed files with 4 additions and 3 deletions

View file

@ -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 == "") \

View file

@ -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")