Skip to content

Commit 9ca7829

Browse files
committed
Fix help page 500 error generation due to variable ordering generation.
1 parent 8dab737 commit 9ca7829

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: app/api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ def help():
357357
import shutil
358358
from pathlib import PureWindowsPath, PurePosixPath
359359
file_paths = './app/static/img/tmp/'
360+
localexists = 'False'
360361
config = Plex.query.filter(Plex.id == '1')
361362
plexserver = PlexServer(config[0].plexurl, config[0].token)
362363
lib = config[0].filmslibrary.split(',')
@@ -406,8 +407,7 @@ def help():
406407
newdir = re.sub(config[0].plexpath, '/films/', i.media[0].parts[0].file, 1)
407408
except:
408409
newdir = 'Can not be converted'
409-
log.debug(newdir)
410-
localexists = 'False'
410+
log.debug(newdir)
411411
if os.path.exists(newdir) == True:
412412
localexists = 'True'
413413
log.debug("PATH EXISTS")

0 commit comments

Comments
 (0)