mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: add logging to know which source is going to fallback to the download
This commit is contained in:
@@ -119,7 +119,11 @@ func (app *App) GetDownloadUrlOrFallback(askedService string, quality string, so
|
||||
|
||||
var downloadUrl string
|
||||
var lastError error
|
||||
for _, service := range servicesToTry {
|
||||
for idx, service := range servicesToTry {
|
||||
if idx > 0 {
|
||||
app.log("Falling back to " + service)
|
||||
}
|
||||
|
||||
switch service {
|
||||
case "tidal":
|
||||
if songlink.LinksByPlatform.Tidal == nil {
|
||||
|
||||
Reference in New Issue
Block a user