Skip to content

Commit 85bc59e

Browse files
committed
fixed error to copy again to cache dir
1 parent 80f9a87 commit 85bc59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ffmpeg_downloader/_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def do(filename, url, content_type, size, *cache_info):
194194
copyfile(zippath, cache_info[0])
195195

196196
# move the downloaded file to the final destination
197-
if not zippath.startswith(dst):
197+
if no_cache_dir or not cache_info[0].startswith(dst):
198198
move(zippath, dst)
199199
elif cache_info[0] != dstpath:
200200
# if not downloading to the cache dir, copy the file

0 commit comments

Comments
 (0)