diff --git a/coub-dl.py b/coub-dl.py index 0b45922..7010d21 100755 --- a/coub-dl.py +++ b/coub-dl.py @@ -190,12 +190,12 @@ def run(URL, output, extension): remove(FILES[File.OUTPUT]) # create temporary directory to work in - with temporary_directory() as dir: + with temporary_directory() as tempdir: # 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}: - 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):