feat: add tidal download url finder

This commit is contained in:
2026-02-17 19:04:47 +01:00
parent 22fe398c6c
commit f79836b11e
4 changed files with 176 additions and 2 deletions

View File

@@ -1,8 +1,21 @@
package lib
type App struct {
UserAgent string // User agent used for scraping requests
SelectedTidalApiUrl string
}
func NewApp() App {
return 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",
}
}
func (app *App) Init() error {
err := app.LoadTidalApis()
if err != nil {
return err
}
return nil
}