fixed deezer methods

This commit is contained in:
cool.gitter.choco
2025-01-31 21:43:51 -06:00
parent 3a1315cdbc
commit 6e4bd1100f
4 changed files with 14 additions and 12 deletions

View File

@@ -32,8 +32,7 @@ def download_album(service, url, main, fallback=None, quality=None, fall_quality
recursive_download=False,
not_interface=False,
make_zip=False,
method_save=1,
real_time_dl=real_time
method_save=1
)
except Exception as e:
# Load fallback Spotify credentials and attempt download
@@ -94,8 +93,7 @@ def download_album(service, url, main, fallback=None, quality=None, fall_quality
recursive_quality=True,
recursive_download=False,
method_save=1,
make_zip=False,
real_time_dl=real_time
make_zip=False
)
else:
raise ValueError(f"Unsupported service: {service}")

View File

@@ -32,8 +32,7 @@ def download_playlist(service, url, main, fallback=None, quality=None, fall_qual
recursive_download=False,
not_interface=False,
make_zip=False,
method_save=1,
real_time_dl=real_time
method_save=1
)
except Exception as e:
# Load fallback Spotify credentials and attempt download
@@ -94,8 +93,7 @@ def download_playlist(service, url, main, fallback=None, quality=None, fall_qual
recursive_quality=False,
recursive_download=False,
method_save=1,
make_zip=False,
real_time_dl=real_time
make_zip=False
)
else:
raise ValueError(f"Unsupported service: {service}")

View File

@@ -28,8 +28,7 @@ def download_track(service, url, main, fallback=None, quality=None, fall_quality
recursive_quality=False,
recursive_download=False,
not_interface=False,
method_save=1,
real_time_dl=real_time
method_save=1
)
except Exception as e:
spo_creds_dir = os.path.join('./creds/spotify', fallback)
@@ -79,8 +78,7 @@ def download_track(service, url, main, fallback=None, quality=None, fall_quality
quality_download=quality,
recursive_quality=False,
recursive_download=False,
method_save=1,
real_time_dl=real_time
method_save=1
)
else:
raise ValueError(f"Unsupported service: {service}")

View File

@@ -415,12 +415,20 @@ async function startEntryMonitoring(queueId) {
}
function handleInactivity(entry, queueId, logElement) {
// Check if real time downloading is enabled
const realTimeEnabled = document.getElementById('realTimeToggle')?.checked;
if (realTimeEnabled) {
// Do nothing if real time downloading is enabled (no timeout)
return;
}
// Only trigger timeout if more than 3 minutes (180000 ms) of inactivity
if (Date.now() - entry.lastUpdated > 180000) {
logElement.textContent = 'Download timed out (3 minutes inactivity)';
handleTerminalState(entry, queueId, { status: 'timeout' });
}
}
function handleTerminalState(entry, queueId, data) {
const logElement = document.getElementById(`log-${entry.uniqueId}-${entry.prgFile}`);