Update 'root/app/fanficdownload.py'

This commit is contained in:
sam 2023-06-07 14:43:56 +00:00
parent 2ac752f79e
commit f61e607c81

View File

@ -126,11 +126,11 @@ def downloader(args):
url, inout_file, path, live = args url, inout_file, path, live = args
# loc = mkdtemp() # loc = mkdtemp()
# loc = '/config/downloads' # loc = '/config/downloads'
if not exists('/config/downloads'): loc = '/config/downloads'
makedirs('/config/downloads') if not exists(loc):
makedirs(loc)
copyfile("/config/personal.ini", "{}/personal.ini".format(loc)) copyfile("/config/personal.ini", "{}/personal.ini".format(loc))
copyfile("/config/defaults.ini", "{}/defaults.ini".format(loc)) copyfile("/config/defaults.ini", "{}/defaults.ini".format(loc))
loc = '/config/downloads'
output = "" output = ""
output += log("Working with url {}".format(url), 'HEADER', live) output += log("Working with url {}".format(url), 'HEADER', live)
storyId = None storyId = None