mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-06-17 16:44:40 +02:00
feat: add tidal download url finder
This commit is contained in:
+14
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user