feat: add --interval flag

This commit is contained in:
2026-02-28 10:50:29 +01:00
parent a0d76a6b01
commit 2fea9a79df
3 changed files with 15 additions and 5 deletions

View File

@@ -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