changeset 60:4e7a9c7c0cce

[channeldownloader] Use yt-dlp in place of youtube-dl committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Fri, 19 Nov 2021 08:47:32 -0500
parents a3927b2ec6e6
children c615532e6572
files channeldownloader.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/channeldownloader.py	Thu Oct 14 09:04:44 2021 -0400
+++ b/channeldownloader.py	Fri Nov 19 08:47:32 2021 -0500
@@ -4,7 +4,7 @@
 import os
 import re
 import urllib.request
-import youtube_dl  # pip install youtube-dl
+import yt_dlp  # pip install yt-dlp
 import itertools
 from urllib.error import HTTPError
 
@@ -134,7 +134,7 @@
                 if isalreadydownloaded == 1:  # not sure how to bypass this without having to go out of the for loop, if anyone could tell me how that would be great!
                     print(" video already downloaded!")
                     continue
-                with youtube_dl.YoutubeDL(ytdl_opts) as ytdl:
+                with yt_dlp.YoutubeDL(ytdl_opts) as ytdl:
                     try:
                         result = ytdl.download(["https://youtube.com/watch?v={0}".format(i["id"])])  # TODO: add check for existing downloaded items and don't download them
                         continue