This commit is contained in:
2025-12-08 12:41:53 +00:00
parent ada27e496d
commit ac999dda59
2 changed files with 4 additions and 2 deletions

View File

@@ -322,6 +322,7 @@ class DownloadManager:
"""Move all albums from downloads/Albums/ to destination path."""
dest_base = os.getenv("ALBUM_DESTINATION_PATH")
if not dest_base:
logger.warning("ALBUM_DESTINATION_PATH not set, skipping move and notification.")
return
download_base = os.getenv("DOWNLOAD_PATH", "/app/downloads")
@@ -370,7 +371,9 @@ class DownloadManager:
def _send_notification(self, content):
url = os.getenv("NOTIFICATION_URL")
logger.info(f"Attempting to send notification to: {url}")
if not url:
logger.warning("NOTIFICATION_URL not set, skipping notification.")
return
try:

View File

@@ -6,8 +6,6 @@ services:
- NET_ADMIN
env_file:
- .env
# ports:
# - "8002:8080" # Expose tidal-dl-web port via gluetun
restart: always
networks:
- proxy
@@ -42,6 +40,7 @@ services:
- DOWNLOAD_PATH=/app/downloads
- XDG_CONFIG_HOME=/app/config
- ALBUM_DESTINATION_PATH=${ALBUM_DESTINATION_PATH:-}
- NOTIFICATION_URL=${NOTIFICATION_URL:-}
restart: unless-stopped
depends_on:
gluetun: