[BACKEND] Update docker container to have latest examples (#319)
This commit is contained in:
parent
93b5d83597
commit
726da5b6be
4 changed files with 40 additions and 42 deletions
3
.github/workflows/package.yaml
vendored
3
.github/workflows/package.yaml
vendored
|
|
@ -38,9 +38,12 @@ jobs:
|
||||||
|
|
||||||
- name: Build Wheel
|
- name: Build Wheel
|
||||||
run: |
|
run: |
|
||||||
|
# Build wheel and copy to docker dir
|
||||||
pip install -e .[build]
|
pip install -e .[build]
|
||||||
python setup.py bdist_wheel
|
python setup.py bdist_wheel
|
||||||
cp dist/*.whl docker/root
|
cp dist/*.whl docker/root
|
||||||
|
# Copy examples to docker defaults dir
|
||||||
|
cp -R examples docker/root/defaults/
|
||||||
|
|
||||||
- name: Save Python build cache
|
- name: Save Python build cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,26 @@
|
||||||
|
# Bare-bones config. Here are some useful links to get started:
|
||||||
|
# Walk-through Guide: https://github.com/jmbannon/ytdl-sub/wiki/1.-Introduction
|
||||||
|
# Config Examples: https://github.com/jmbannon/ytdl-sub/tree/master/examples
|
||||||
|
# Prebuilt Presets: https://ytdl-sub.readthedocs.io/en/latest/presets.html
|
||||||
|
# Config Docs: https://ytdl-sub.readthedocs.io/en/latest/config.html
|
||||||
|
#
|
||||||
|
# Examples are included in the /config/examples/ directory.
|
||||||
|
# Any config and subscription can be ran using:
|
||||||
|
# ytdl-sub --config /path/to/config.yaml sub /path/to/subscriptions.yaml
|
||||||
|
#
|
||||||
|
# Or dry-ran with:
|
||||||
|
# ytdl-sub --dry-run --config /path/to/config.yaml sub /path/to/subscriptions.yaml
|
||||||
|
#
|
||||||
configuration:
|
configuration:
|
||||||
working_directory: '/tmp/ytdl-sub-downloads'
|
working_directory: '/tmp/ytdl-sub-downloads'
|
||||||
|
|
||||||
# All example presets are included in this default config.yaml,
|
|
||||||
# feel free to change it as you see fit. For a detailed explanation
|
|
||||||
# of the examples, see https://ytdl-sub.readthedocs.io/en/latest/examples.html
|
|
||||||
presets:
|
presets:
|
||||||
|
|
||||||
#############################################################################
|
video:
|
||||||
# Downloads single videos and stores them as Kodi/Jellyfin/Emby music videos,
|
download:
|
||||||
# which all live in a single directory.
|
download_strategy: "url"
|
||||||
yt_music_video:
|
|
||||||
youtube:
|
|
||||||
download_strategy: "video"
|
|
||||||
|
|
||||||
output_options:
|
output_options:
|
||||||
output_directory: "{music_video_directory}"
|
output_directory: "/tmp/ytdl-sub-output"
|
||||||
file_name: "{music_video_name}.{ext}"
|
file_name: "{uid}.{ext}"
|
||||||
thumbnail_name: "{music_video_name}-thumb.jpg"
|
thumbnail_name: "{uid}.{thumbnail_ext}"
|
||||||
|
|
||||||
nfo_tags:
|
|
||||||
nfo_name: "{music_video_name}.nfo"
|
|
||||||
nfo_root: "musicvideo"
|
|
||||||
tags:
|
|
||||||
artist: "{artist}"
|
|
||||||
title: "{title}"
|
|
||||||
album: "Music Videos"
|
|
||||||
year: "{upload_year}"
|
|
||||||
|
|
||||||
overrides:
|
|
||||||
music_video_directory: "/music_videos"
|
|
||||||
music_video_name: "{artist_sanitized} - {title_sanitized}"
|
|
||||||
# artist: # FILL THIS OUT IN THE SUBSCRIPTION
|
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
# Downloads playlists and stores all videos as Kodi/Jellyfin/Emby music
|
|
||||||
# videos, which all live in a single directory.
|
|
||||||
yt_music_video_playlist:
|
|
||||||
preset: "yt_music_video"
|
|
||||||
youtube:
|
|
||||||
download_strategy: "playlist"
|
|
||||||
|
|
||||||
output_options:
|
|
||||||
maintain_download_archive: True
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,18 @@
|
||||||
|
# Bare-bones config. Here are some useful links to get started:
|
||||||
|
# Walk-through Guide: https://github.com/jmbannon/ytdl-sub/wiki/1.-Introduction
|
||||||
|
# Config Examples: https://github.com/jmbannon/ytdl-sub/tree/master/examples
|
||||||
|
# Prebuilt Presets: https://ytdl-sub.readthedocs.io/en/latest/presets.html
|
||||||
|
# Config Docs: https://ytdl-sub.readthedocs.io/en/latest/config.html
|
||||||
|
#
|
||||||
|
# Examples are included in the /config/examples/ directory.
|
||||||
|
# Any config and subscription can be ran using:
|
||||||
|
# ytdl-sub --config /path/to/config.yaml sub /path/to/subscriptions.yaml
|
||||||
|
#
|
||||||
|
# Or dry-ran with:
|
||||||
|
# ytdl-sub --dry-run --config /path/to/config.yaml sub /path/to/subscriptions.yaml
|
||||||
|
#
|
||||||
rammstein_music_videos:
|
rammstein_music_videos:
|
||||||
preset: "yt_music_video_playlist"
|
preset: "video"
|
||||||
youtube:
|
download:
|
||||||
playlist_url: "https://youtube.com/playlist?list=PLVTLbc6i-h_iuhdwUfuPDLFLXG2QQnz-x"
|
url: "https://youtube.com/playlist?list=PLVTLbc6i-h_iuhdwUfuPDLFLXG2QQnz-x"
|
||||||
overrides:
|
|
||||||
artist: "Rammstein"
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
cp /defaults/config.yaml /config/config.yaml
|
cp /defaults/config.yaml /config/config.yaml
|
||||||
[[ ! -e /config/subscriptions.yaml ]] && \
|
[[ ! -e /config/subscriptions.yaml ]] && \
|
||||||
cp /defaults/subscriptions.yaml /config/subscriptions.yaml
|
cp /defaults/subscriptions.yaml /config/subscriptions.yaml
|
||||||
|
[[ ! -d /config/examples ]] && \
|
||||||
|
cp -R /defaults/examples /config/
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue