Mbonea commited on
Commit
fbe8b8e
1 Parent(s): b546952

No file name

Browse files
App/Transcription/TranscriptionRoutes.py CHANGED
@@ -32,6 +32,10 @@ async def download_audio(
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,7 +57,6 @@ async def download_audio(
53
  )
54
  return {
55
  "task_id": task.id,
56
- "file_name": filename,
57
  }
58
 
59
 
 
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
  )
58
  return {
59
  "task_id": task.id,
 
60
  }
61
 
62