# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1637329652 18000 # Node ID 4e7a9c7c0cce00dddecab1fdcc20b3ec5d58aaa5 # Parent a3927b2ec6e630f4ecf73fd17760794224c3b7fb [channeldownloader] Use yt-dlp in place of youtube-dl committer: GitHub diff -r a3927b2ec6e6 -r 4e7a9c7c0cce channeldownloader.py --- 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