Changing YouTube_dl to ytp_dl

This commit is contained in:
thewesker
2023-04-10 19:26:57 -04:00
committed by GitHub
parent 3c08ea3f16
commit c5b94e8e70

View File

@@ -1,8 +1,8 @@
import youtube_dl import ytp_dl
def download(videoUrl): def download(videoUrl):
response = {'fileName': '', 'duration': 0, 'messages': ''} response = {'fileName': '', 'duration': 0, 'messages': ''}
ydl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s.mp4', 'merge_output_format': 'mp4'}) ydl = ytp_dl.YoutubeDL({'outtmpl': '%(id)s.mp4', 'merge_output_format': 'mp4'})
with ydl: with ydl: