Updated script and added new config file

This commit is contained in:
2026-07-24 22:28:45 +01:00
parent 24fcc55a23
commit 5bb7703918
3 changed files with 369 additions and 437 deletions
+23
View File
@@ -0,0 +1,23 @@
# Directory paths
DOWNLOAD_DIR="/tmp/"
FINAL_DIR="/location/to/save/directory"
LOG_FILE="/opt/podcast-pownloader/PODCAST_NAME/.youtube_downloader.log"
LOG_DIR="$(dirname "$LOG_FILE")"
DOWNLOADS_LOG="/opt/podcast-pownloader/PODCAST_NAME/downloaded_episodes.log"
DOWNLOADS_LOCK="/opt/podcast-pownloader/PODCAST_NAME/.podcast_downloads.lock"
MAX_LOG_SIZE=$((10 * 1024 * 1024))
# Quality and format settings
QUALITY="137+140"
AUDIO_FORMAT="m4a"
VIDEO_FORMAT="mp4"
# Download behavior
RATE_LIMIT="3M"
SLEEP_INTERVAL=120
MAX_RETRIES=3
CONNECTION_TIMEOUT=30
# Playlist
PLAYLIST_URL="https://www.youtube.com/playlist?list=URL"