"Correct md5 hash reference in downloader script
Updated the reference for the md5 hash in downloader.py.
This commit is contained in:
parent
a36abd4297
commit
6887b0b412
|
|
@ -79,7 +79,7 @@ def download_assets(asset_name: Union[VideoAssets, str]) -> str:
|
|||
copyfileobj(r_raw, f)
|
||||
|
||||
elif path_exists(filename):
|
||||
if not is_md5_hash_matching(filename, VIDEO_ASSETS[filename][2]):
|
||||
if not is_md5_hash_matching(filename, VIDEO_ASSETS[filename][1]):
|
||||
print("File corrupted. Re-downloading... \n")
|
||||
os_remove(filename)
|
||||
download_assets(filename)
|
||||
|
|
|
|||
Loading…
Reference in New Issue