mirror of
https://github.com/gabehf/music-importer.git
synced 2026-04-22 11:31:52 -07:00
better release search. artist search just ok
This commit is contained in:
parent
4324de1271
commit
eca7f4ba31
8 changed files with 121 additions and 38 deletions
2
slskd.go
2
slskd.go
|
|
@ -141,7 +141,7 @@ func slskdSearchIsTerminal(state string) bool {
|
|||
// then returns the responses from the dedicated /responses sub-endpoint.
|
||||
// Each poll check-in is reported via logf.
|
||||
func pollSlskdSearch(id string, logf func(string)) ([]slskdPeerResponse, error) {
|
||||
deadline := time.Now().Add(30 * time.Second)
|
||||
deadline := time.Now().Add(60 * time.Second)
|
||||
for {
|
||||
resp, err := slskdDo("GET", "/api/v0/searches/"+id, nil)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue