admin commited on
Commit
610f7e5
·
1 Parent(s): 186440e

upd bili cache

Browse files
Files changed (1) hide show
  1. bili.py +1 -1
bili.py CHANGED
@@ -6,7 +6,7 @@ from utils import timestamp, clean_dir
6
  from config import TMP_DIR, HEADER, TIMEOUT, API_BILI
7
 
8
 
9
- def download_file(url, video_id, cache_dir=TMP_DIR):
10
  clean_dir(cache_dir)
11
  local_file = f"{cache_dir}/{video_id}.mp4"
12
  response = requests.get(url, stream=True)
 
6
  from config import TMP_DIR, HEADER, TIMEOUT, API_BILI
7
 
8
 
9
+ def download_file(url, video_id, cache_dir=f"{TMP_DIR}/bili"):
10
  clean_dir(cache_dir)
11
  local_file = f"{cache_dir}/{video_id}.mp4"
12
  response = requests.get(url, stream=True)