mirror of
https://github.com/thewesker/Video-Archive-Discord-Bot.git
synced 2025-12-19 20:01:15 -05:00
Update downloader.py
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import ytp_dl
|
import ytp_dlp
|
||||||
|
|
||||||
def download(videoUrl):
|
def download(videoUrl):
|
||||||
response = {'fileName': '', 'duration': 0, 'messages': ''}
|
response = {'fileName': '', 'duration': 0, 'messages': ''}
|
||||||
ydl = ytp_dl.YoutubeDL({'outtmpl': '%(id)s.mp4', 'merge_output_format': 'mp4'})
|
ydl = yt_dlp.YoutubeDL({'outtmpl': '%(id)s.mp4', 'merge_output_format': 'mp4'})
|
||||||
|
|
||||||
|
|
||||||
with ydl:
|
with ydl:
|
||||||
|
|||||||
Reference in New Issue
Block a user