From 174637be6295ca9b5a91d3c23642326e00a4b2b4 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 May 2023 22:14:35 +0200 Subject: [PATCH] asd --- channel_archiver/download_archive.bat | 1 + channel_archiver/download_archive.sh | 3 +++ channel_archiver/readme.md | 29 +++++++++++++++++++++++++++ channel_archiver/yt-dlp-archive.txt | 0 channel_archiver/yt-dlp-channels.txt | 2 ++ channel_archiver/yt-dlp.conf | 12 +++++++++++ 6 files changed, 47 insertions(+) create mode 100644 channel_archiver/download_archive.bat create mode 100755 channel_archiver/download_archive.sh create mode 100644 channel_archiver/readme.md create mode 100644 channel_archiver/yt-dlp-archive.txt create mode 100644 channel_archiver/yt-dlp-channels.txt create mode 100644 channel_archiver/yt-dlp.conf diff --git a/channel_archiver/download_archive.bat b/channel_archiver/download_archive.bat new file mode 100644 index 0000000..0cfe42b --- /dev/null +++ b/channel_archiver/download_archive.bat @@ -0,0 +1 @@ +yt-dlp --config-location yt-dlp.conf \ No newline at end of file diff --git a/channel_archiver/download_archive.sh b/channel_archiver/download_archive.sh new file mode 100755 index 0000000..f9ec2a8 --- /dev/null +++ b/channel_archiver/download_archive.sh @@ -0,0 +1,3 @@ +#!/bin/sh +yt-dlp --config-location yt-dlp.conf +cd ../ && python import.py diff --git a/channel_archiver/readme.md b/channel_archiver/readme.md new file mode 100644 index 0000000..67d0333 --- /dev/null +++ b/channel_archiver/readme.md @@ -0,0 +1,29 @@ +# yt-dlp config - downloading entire youtube channels for archival + +# Readme + +This repo contains a config file which makes it easy to download entire youtube channels, and also update them without having to re-download existing videos. + +Update 2022-09: It has been a while since [youtube-dl](https://github.com/ytdl-org/youtube-dl) was updated, so I have updated all the commands and config to use the current most popular youtube video downloader: [yt-dlp](https://github.com/yt-dlp/yt-dlp). + +# Usage + +Edit channel urls in `yt-dlp-channels.txt`. + +The empty file `yt-dlp-archive.txt` is used to store downloaded video ids. + +## Linux + + chmod +x download_archive.sh + +Run using `./download_archive.sh` + +## Windows + +Run `download_archive.bat` + +## Thanks + +Thanks to https://www.reddit.com/user/Stephen304 for creating the original config, on the since deleted post: https://www.reddit.com/r/DataHoarder/comments/858ny5/my_youtubedl_config_downloading_entire_channels/ + +There is an archive of the original post at: https://archive.ph/T4sa2 diff --git a/channel_archiver/yt-dlp-archive.txt b/channel_archiver/yt-dlp-archive.txt new file mode 100644 index 0000000..e69de29 diff --git a/channel_archiver/yt-dlp-channels.txt b/channel_archiver/yt-dlp-channels.txt new file mode 100644 index 0000000..8232d6d --- /dev/null +++ b/channel_archiver/yt-dlp-channels.txt @@ -0,0 +1,2 @@ +# UnusualVideos +https://www.youtube.com/channel/UCpnkp_D4FLPCiXOmDhoAeYA diff --git a/channel_archiver/yt-dlp.conf b/channel_archiver/yt-dlp.conf new file mode 100644 index 0000000..2a7718b --- /dev/null +++ b/channel_archiver/yt-dlp.conf @@ -0,0 +1,12 @@ +-i +-o "%(uploader)s (%(uploader_id)s)/%(upload_date)s - %(title)s - (%(duration)ss) [%(resolution)s] [%(id)s].%(ext)s" + +# Archive Settings +--download-archive yt-dlp-archive.txt +-a yt-dlp-channels.txt +-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' +--write-description +--write-thumbnail + +# Debug +-v