Last active
January 24, 2022 23:27
-
-
Save akulbe/27d6aaad7f56783e422f3ecf1a11a474 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have yt-dlp (fork of youtube-dl) downloading all videos for channels I subscribe to and sticking them in an NFS share on the Synology. | |
This is how my Dockerfile is, currently: | |
===START HERE=== | |
FROM alpine | |
RUN apk update \ | |
&& apk add python3 py3-pip ffmpeg aria2 \ | |
&& pip3 install yt-dlp --no-dependencies | |
VOLUME ["/app"] | |
VOLUME ["/downloads"] | |
ADD volume1/git/video_getter.git /app | |
ADD volume1/NFSplace/Videos /downloads | |
WORKDIR /app | |
ENTRYPOINT ["yt-dlp", "--external-downloader", "aria2c", "-a", "/app/get_these_videos.txt", "--config-location", "/app/syno_config"] | |
===END HERE=== | |
"get_these_videos.txt" is a file that contains the URLs for my subscriptions. | |
My "syno_config" file is as follows: | |
===START HERE=== | |
--format ("bestvideo[width>=1920]"/bestvideo)+bestaudio/best | |
--check-formats | |
--embed-chapters | |
--download-archive archive.txt | |
--output /downloads/%(uploader)s/%(upload_date)s.%(title)s.%(id)s.%(ext)s | |
--restrict-filenames | |
--ignore-errors | |
===END HERE=== | |
The git repo that contains these files is on my Syno at /volume1/git/video_getter.git/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment