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

View File

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