Spaces:
Paused
Paused
Commit
·
ab26803
1
Parent(s):
23978b6
fix
Browse files- hf_scrapper.py +1 -1
hf_scrapper.py
CHANGED
@@ -143,7 +143,7 @@ def download_episode(file_url, token, cache_path, proxies, episode_id, title, ch
|
|
143 |
response.raise_for_status()
|
144 |
|
145 |
total_size = int(response.headers.get('content-length', 0))
|
146 |
-
download_progress[
|
147 |
|
148 |
os.makedirs(os.path.dirname(cache_path), exist_ok=True)
|
149 |
with open(cache_path, 'wb') as file, tqdm(total=total_size, unit='B', unit_scale=True, desc=cache_path) as pbar:
|
|
|
143 |
response.raise_for_status()
|
144 |
|
145 |
total_size = int(response.headers.get('content-length', 0))
|
146 |
+
download_progress[episode_id] = {"total": total_size, "downloaded": 0, "status": "Downloading", "start_time": time.time()}
|
147 |
|
148 |
os.makedirs(os.path.dirname(cache_path), exist_ok=True)
|
149 |
with open(cache_path, 'wb') as file, tqdm(total=total_size, unit='B', unit_scale=True, desc=cache_path) as pbar:
|