"Correct md5 hash reference in downloader script

Updated the reference for the md5 hash in downloader.py.
This commit is contained in:
SkalskiP 2023-10-24 14:25:11 +02:00
parent a36abd4297
commit 6887b0b412
1 changed files with 1 additions and 1 deletions

View File

@ -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)