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

@@ -5,12 +5,14 @@ type App struct {
SelectedTidalApiUrl string
Verbose bool
SpotifyClient *SpotifyClient
ApiInterval int // How many ms to wait between one call to apis and the other
}
func NewApp() App {
return App{
UserAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
Verbose: false,
ApiInterval: 800,
}
}