Chrunos commited on
Commit
d6de3a2
·
verified ·
1 Parent(s): 406d2c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -183,7 +183,7 @@ async def download_high_quality_video(request: Request):
183
  env_to_cookies_from_env("firefox-cookies.txt")
184
 
185
  timestamp = datetime.now().strftime('%Y%m%d%H%M%S')
186
- output_template = str(Path(global_download_dir) / f'%(title)s_{timestamp}.%(ext)s')
187
 
188
  # Convert quality string to height
189
  height_map = {
@@ -286,7 +286,7 @@ async def download_audio(request: Request):
286
  env_to_cookies_from_env("firefox-cookies.txt")
287
 
288
  timestamp = datetime.now().strftime('%Y%m%d%H%M%S')
289
- output_template = str(Path(global_download_dir) / f'%(title)s_{timestamp}.%(ext)s')
290
 
291
  ydl_opts = {
292
  'format': 'bestaudio/best',
@@ -332,7 +332,7 @@ async def search_and_download_song(request: Request):
332
  env_to_cookies_from_env("firefox-cookies.txt")
333
 
334
  timestamp = datetime.now().strftime('%Y%m%d%H%M%S')
335
- output_template = str(Path(global_download_dir) / f'%(title)s_{timestamp}.%(ext)s')
336
 
337
  ydl_opts = {
338
  'format': 'bestaudio/best',
 
183
  env_to_cookies_from_env("firefox-cookies.txt")
184
 
185
  timestamp = datetime.now().strftime('%Y%m%d%H%M%S')
186
+ output_template = str(Path(global_download_dir) / f'%(title).70s_{timestamp}.%(ext)s')
187
 
188
  # Convert quality string to height
189
  height_map = {
 
286
  env_to_cookies_from_env("firefox-cookies.txt")
287
 
288
  timestamp = datetime.now().strftime('%Y%m%d%H%M%S')
289
+ output_template = str(Path(global_download_dir) / f'%(title).70s_{timestamp}.%(ext)s')
290
 
291
  ydl_opts = {
292
  'format': 'bestaudio/best',
 
332
  env_to_cookies_from_env("firefox-cookies.txt")
333
 
334
  timestamp = datetime.now().strftime('%Y%m%d%H%M%S')
335
+ output_template = str(Path(global_download_dir) / f'%(title).70s_{timestamp}.%(ext)s')
336
 
337
  ydl_opts = {
338
  'format': 'bestaudio/best',