fix: service selection priority and Amazon fallback-only

- Fix service selection ignored: user's preferred service now takes priority
- Add preferredService parameter to downloadWithExtensions
- Gray out Amazon in service picker (fallback only)
- Clean up unused code in Go backend
This commit is contained in:
zarzet
2026-02-01 21:04:35 +07:00
parent b9c3f2f0dd
commit 8ace180fa8
12 changed files with 98 additions and 184 deletions
+2 -1
View File
@@ -1878,7 +1878,7 @@ class DownloadQueueNotifier extends Notifier<DownloadQueueState> {
'Quality: $quality${item.qualityOverride != null ? ' (override)' : ''}',
);
_log.d('Output dir: $outputDir');
result = await PlatformBridge.downloadWithExtensions(
result = await PlatformBridge.downloadWithExtensions(
isrc: trackToDownload.isrc ?? '',
spotifyId: trackToDownload.id,
trackName: trackToDownload.name,
@@ -1898,6 +1898,7 @@ class DownloadQueueNotifier extends Notifier<DownloadQueueState> {
genre: genre,
label: label,
lyricsMode: settings.lyricsMode,
preferredService: item.service,
);
} else if (state.autoFallback) {
_log.d('Using auto-fallback mode');