mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-04 15:38:14 +02:00
Add CLI flags and env vars docker documentation and clean up entrypoint script comments
This commit is contained in:
1 parent
5eae107475
commit
05355f54fc
2 files changed
+48
-8
No files matched your search
@@ -28,10 +28,9 @@ fi
|
||||
# 1) YTPL_CONFIG_JSON -> full JSON payload for the entire config
|
||||
# 2) YTPL_PLAYLISTS_JSON -> JSON array assigned to 'playlists' key in the base config
|
||||
# 3) PLAYLIST_{N}_{FIELD} env vars, e.g. PLAYLIST_0_URL, PLAYLIST_0_DOWNLOAD_MODE, etc.
|
||||
# Top-level overrides (optional): YTPL_YT_DLP_PATH, YTPL_FFMPEG_PATH, YTPL_ARIA2C_PATH,
|
||||
# YTPL_MAX_PARALLEL_DOWNLOADS, YTPL_ARIAC2_CONNECTIONS, YTPL_MAX_VIDEO_QUALITY, YTPL_DOWNLOAD_MODE
|
||||
# Top-level overrides (optional): YTPL_MAX_PARALLEL_DOWNLOADS, YTPL_ARIA2C_CONNECTIONS, YTPL_MAX_VIDEO_QUALITY, YTPL_DOWNLOAD_MODE
|
||||
|
||||
if [ -n "${YTPL_CONFIG_JSON:-}" ] || [ -n "${YTPL_PLAYLISTS_JSON:-}" ] || env | grep -q '^PLAYLIST_' || [ -n "${YTPL_YT_DLP_PATH:-}" ] || [ -n "${YTPL_FFMPEG_PATH:-}" ] || [ -n "${YTPL_ARIA2C_PATH:-}" ]; then
|
||||
if [ -n "${YTPL_CONFIG_JSON:-}" ] || [ -n "${YTPL_PLAYLISTS_JSON:-}" ] || env | grep -q '^PLAYLIST_' ; then
|
||||
python - <<'PY'
|
||||
import os, json, sys
|
||||
from pathlib import Path
|
||||
@@ -113,9 +112,6 @@ if playlists:
|
||||
|
||||
# Top-level overrides
|
||||
overrides = {
|
||||
'yt_dlp_path': 'YTPL_YT_DLP_PATH',
|
||||
'ffmpeg_path': 'YTPL_FFMPEG_PATH',
|
||||
'aria2c_path': 'YTPL_ARIA2C_PATH',
|
||||
'max_parallel_downloads': 'YTPL_MAX_PARALLEL_DOWNLOADS',
|
||||
'aria2c_connections': 'YTPL_ARIA2C_CONNECTIONS',
|
||||
'max_video_quality': 'YTPL_MAX_VIDEO_QUALITY',
|
||||
|
||||
Reference in new issue
Block a user