initial
This commit is contained in:
commit
a486042b54
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM ubuntu:bionic
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV HOME /root
|
||||
|
||||
RUN apt update && apt -y upgrade
|
||||
|
||||
RUN apt install -y python3-pip
|
||||
|
||||
RUN pip3 install youtube_dl
|
||||
|
||||
ADD youtube-dl.conf /root/.config/youtube-dl/config
|
7
Makefile
Normal file
7
Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
default: build_image
|
||||
|
||||
build_image:
|
||||
docker build -t sneak/youtube-dl .
|
||||
|
||||
run:
|
||||
docker run -t sneak/youtube-dl /bin/bash
|
4
README.md
Normal file
4
README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# youtube-dl-docker
|
||||
|
||||
inspired by https://old.reddit.com/r/DataHoarder/comments/c6fh4x/after_hoarding_over_50k_youtube_videos_here_is/
|
||||
|
10
youtube-dl.conf
Normal file
10
youtube-dl.conf
Normal file
@ -0,0 +1,10 @@
|
||||
--download-archive "/output/archive.log"
|
||||
-i
|
||||
--add-metadata
|
||||
--all-subs
|
||||
--embed-subs
|
||||
--embed-thumbnail
|
||||
--match-filter "playlist_title != 'Liked videos' & playlist_title != 'Favorites'"
|
||||
-f "(bestvideo[vcodec^=av01][height>=1080][fps>30]/bestvideo[vcodec=vp9.2][height>=1080][fps>30]/bestvideo[vcodec=vp9][height>=1080][fps>30]/bestvideo[vcodec^=av01][height>=1080]/bestvideo[vcodec=vp9.2][height>=1080]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[height>=1080]/bestvideo[vcodec^=av01][height>=720][fps>30]/bestvideo[vcodec=vp9.2][height>=720][fps>30]/bestvideo[vcodec=vp9][height>=720][fps>30]/bestvideo[vcodec^=av01][height>=720]/bestvideo[vcodec=vp9.2][height>=720]/bestvideo[vcodec=vp9][height>=720]/bestvideo[height>=720]/bestvideo)+(bestaudio[acodec=opus]/bestaudio)/best"
|
||||
--merge-output-format mkv
|
||||
-o "/output/%%(playlist_uploader)s/%%(playlist)s/%%(playlist_index)s - %%(title)s - %%(id)s.%%(ext)s"
|
Loading…
Reference in New Issue
Block a user