Mbonea commited on
Commit
e795bbe
·
1 Parent(s): dd2695b

add filename

Browse files
App/Transcription/TranscriptionRoutes.py CHANGED
@@ -32,10 +32,6 @@ async def download_audio(
32
  if user == None:
33
  return {"code": 400, "message": "doesn't exist", "payload": None}
34
 
35
- ydl_opts_info = {
36
- "quiet": True,
37
- }
38
-
39
  with yt_dlp.YoutubeDL(ydl_opts_info) as ydl:
40
  info_dict = ydl.extract_info(url, download=False)
41
  video_title = info_dict.get("title", None)
@@ -57,6 +53,7 @@ async def download_audio(
57
  )
58
  return {
59
  "task_id": task.id,
 
60
  }
61
 
62
 
 
32
  if user == None:
33
  return {"code": 400, "message": "doesn't exist", "payload": None}
34
 
 
 
 
 
35
  with yt_dlp.YoutubeDL(ydl_opts_info) as ydl:
36
  info_dict = ydl.extract_info(url, download=False)
37
  video_title = info_dict.get("title", None)
 
53
  )
54
  return {
55
  "task_id": task.id,
56
+ "file_name": filename,
57
  }
58
 
59