mirror of
https://github.com/thewesker/Video-Archive-Discord-Bot.git
synced 2025-12-20 04:11:05 -05:00
Add a very basic ability to download audio only
This commit is contained in:
@@ -2,7 +2,7 @@ import youtube_dl
|
||||
|
||||
def download(videoUrl):
|
||||
response = {'fileName': '', 'duration': 0, 'messages': ''}
|
||||
ydl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s.mp4'})
|
||||
ydl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s.mp4', 'merge_output_format': 'mp4'})
|
||||
|
||||
|
||||
with ydl:
|
||||
|
||||
Reference in New Issue
Block a user