renamed some stuff so they wont shadow built-in functions
This commit is contained in:
parent
2d9cc21dda
commit
8139b88afe
@ -190,12 +190,12 @@ def run(URL, output, extension):
|
|||||||
remove(FILES[File.OUTPUT])
|
remove(FILES[File.OUTPUT])
|
||||||
|
|
||||||
# create temporary directory to work in
|
# create temporary directory to work in
|
||||||
with temporary_directory() as dir:
|
with temporary_directory() as tempdir:
|
||||||
# update temporary file locations in FILES dict
|
# update temporary file locations in FILES dict
|
||||||
for key in {key: FILES[key] for key in FILES if key not in coub_dl.output_files}:
|
for key in {key: FILES[key] for key in FILES if key not in coub_dl.output_files}:
|
||||||
FILES[key] = join(dir, FILES[key])
|
FILES[key] = join(tempdir, FILES[key])
|
||||||
|
|
||||||
coub_dl(URL, FILES, dir)()
|
coub_dl(URL, FILES, tempdir)()
|
||||||
|
|
||||||
|
|
||||||
def determine_output_filename(url, user_supplied, extension, files_dict):
|
def determine_output_filename(url, user_supplied, extension, files_dict):
|
||||||
|
Loading…
Reference in New Issue
Block a user