This commit is contained in:
root 2023-05-09 22:14:35 +02:00
parent 5e7b81fb76
commit 174637be62
6 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1 @@
yt-dlp --config-location yt-dlp.conf

View File

@ -0,0 +1,3 @@
#!/bin/sh
yt-dlp --config-location yt-dlp.conf
cd ../ && python import.py

View File

@ -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

View File

View File

@ -0,0 +1,2 @@
# UnusualVideos
https://www.youtube.com/channel/UCpnkp_D4FLPCiXOmDhoAeYA

View File

@ -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