The downloader was incorrectly using 'asset_name' instead of 'filename' leading to missed video asset downloads. The reference has been corrected to use 'filename' for proper checking and downloading.

This commit is contained in:
SkalskiP committed 2023-10-24 14:16:46 +02:00
1 parent 9b3dc37e28
commit 7715ef2a17
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ def download_assets(asset_name: Union[VideoAssets, str]) -> str:
if not path_exists(filename) and filename in VIDEO_ASSETS:
print(f"Downloading {filename} assets \n")
res: Response = get(
VIDEO_ASSETS[asset_name][0], stream=True, allow_redirects=True
VIDEO_ASSETS[filename][0], stream=True, allow_redirects=True
)
if res.status_code != 200:
res.raise_for_status()