removed printing
This commit is contained in:
@@ -6,4 +6,4 @@ services:
|
|||||||
- ./downloads:/app/downloads
|
- ./downloads:/app/downloads
|
||||||
ports:
|
ports:
|
||||||
- 7171:7171
|
- 7171:7171
|
||||||
image: spotizerr
|
image: cooldockerizer93/spotizerr
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ def download_playlist(service, url, main, fallback=None):
|
|||||||
method_save=1
|
method_save=1
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# If the first attempt fails, use the fallback Spotify main
|
|
||||||
print(f"Failed to download via Deezer fallback: {e}. Trying Spotify fallback main.")
|
|
||||||
# Load fallback Spotify credentials and attempt download
|
# Load fallback Spotify credentials and attempt download
|
||||||
try:
|
try:
|
||||||
spo_creds_dir = os.path.join('./creds/spotify', fallback)
|
spo_creds_dir = os.path.join('./creds/spotify', fallback)
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ def download_track(service, url, main, fallback=None):
|
|||||||
method_save=1
|
method_save=1
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Fallback to Spotify credentials if Deezer fails
|
|
||||||
print(f"Failed to download via Deezer fallback: {e}. Trying Spotify fallback.")
|
|
||||||
spo_creds_dir = os.path.join('./creds/spotify', fallback)
|
spo_creds_dir = os.path.join('./creds/spotify', fallback)
|
||||||
spo_creds_path = os.path.abspath(os.path.join(spo_creds_dir, 'credentials.json'))
|
spo_creds_path = os.path.abspath(os.path.join(spo_creds_dir, 'credentials.json'))
|
||||||
spo = SpoLogin(credentials_path=spo_creds_path)
|
spo = SpoLogin(credentials_path=spo_creds_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user