mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: add --interval flag
This commit is contained in:
@@ -95,7 +95,7 @@ func (app *App) DownloadPlaylist(url string, outputFile string, service string,
|
||||
}
|
||||
|
||||
// Avoid getting rate limited
|
||||
time.Sleep(800 * time.Millisecond)
|
||||
time.Sleep(time.Duration(app.ApiInterval) * time.Millisecond)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user