taigatakano commited on
Commit
0e41323
·
1 Parent(s): cc99721
Files changed (1) hide show
  1. lab_tools/ytutil.py +1 -1
lab_tools/ytutil.py CHANGED
@@ -51,7 +51,7 @@ def download_youtube_video(youtube_url: str) -> str:
51
 
52
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
53
  info_dict = ydl.extract_info(youtube_url, download=True)
54
- file_path = ydl.prepare_filename(info_dict)
55
  print(f"Downloaded file path: {file_path}")
56
 
57
  return file_path
 
51
 
52
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
53
  info_dict = ydl.extract_info(youtube_url, download=True)
54
+ file_path = ydl.prepare_filename(info_dict) + ".mp4"
55
  print(f"Downloaded file path: {file_path}")
56
 
57
  return file_path