From 5fcf3fc11168a0feb29e5a8e06333e6b5bd55ff4 Mon Sep 17 00:00:00 2001 From: friend Date: Sun, 6 Nov 2022 23:48:23 +0100 Subject: [PATCH] invert --- pdf-compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf-compile.py b/pdf-compile.py index 53b54bc..ba9817d 100755 --- a/pdf-compile.py +++ b/pdf-compile.py @@ -60,7 +60,7 @@ for chapter in chapters: os.makedirs(localhost+name) pdffile=name+'.pdf' - if len(sys.argv)>1 and sys.argv[1]=='local': + if len(sys.argv)<2 or sys.argv[1]=='nonlocal': if('octomode.vvvvvvaria.org' in chapter): preview = requests.get(chapter.replace('pad/','preview.html'), auth=authvvvvvv)