added entrypoint to create yt-dlp.conf on container run if not exist
This commit is contained in:
11
default-yt-dlp.conf
Normal file
11
default-yt-dlp.conf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# yt-dlp config file (yt-dlp.conf or .config/yt-dlp/config)
|
||||||
|
--simulate
|
||||||
|
-f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
|
||||||
|
--embed-chapters
|
||||||
|
--embed-info-json
|
||||||
|
--write-playlist-metafiles
|
||||||
|
#--paths "{"home":"./downloads"}"
|
||||||
|
--download-archive "/config/archive.txt"
|
||||||
|
--restrict-filenames
|
||||||
|
--output "/downloads/%(uploader)s/%(playlist_title)s/%(playlist_index)s%(playlist_index& - )s%(title)s.%(ext)s"
|
||||||
|
# --split-chapters
|
||||||
@@ -7,4 +7,7 @@ RUN apk update && \
|
|||||||
COPY requirements.txt requirements.txt
|
COPY requirements.txt requirements.txt
|
||||||
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
||||||
COPY youdis.py youdis.py
|
COPY youdis.py youdis.py
|
||||||
|
COPY default-yt-dlp.conf /app/default-yt-dlp.conf
|
||||||
|
COPY create-ytdlp-conf.sh /app/create-ytdlp-conf.sh
|
||||||
|
ENTRYPOINT ["/app/create-ytdlp-conf.sh"]
|
||||||
CMD ["python3", "youdis.py"]
|
CMD ["python3", "youdis.py"]
|
||||||
Reference in New Issue
Block a user