This commit is contained in:
afkarxyz
2025-11-22 17:59:48 +07:00
parent 8a2dbe4e32
commit d90221b835
11 changed files with 211 additions and 15 deletions
+9
View File
@@ -113,6 +113,10 @@ func (a *App) DownloadTrack(req DownloadRequest) (DownloadResponse, error) {
req.FilenameFormat = "title-artist"
}
// Set downloading state
backend.SetDownloading(true)
defer backend.SetDownloading(false)
if req.Service == "tidal" {
searchQuery := req.Query
if searchQuery == "" {
@@ -179,3 +183,8 @@ func (a *App) GetDefaults() map[string]string {
"downloadPath": backend.GetDefaultMusicPath(),
}
}
// GetDownloadProgress returns current download progress
func (a *App) GetDownloadProgress() backend.ProgressInfo {
return backend.GetDownloadProgress()
}