mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 04:23:08 +00:00
[44] Merge remote-tracking branch 'jz1/nightly' into nightly
This commit is contained in:
commit
b4cd72606a
2 changed files with 4 additions and 3 deletions
|
@ -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 == "") \
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue