Closed hasezoey closed 2 months ago
This PR refactors some parts in lib::songtag, most notably changing to use async-reqwest instead of blocking, other changes:
Service*::search
types
SongTag
to_song_info
static: &str
const: &str
Now there is only 1 usage of reqwest::blocking anymore, that being lib::podcast (and a unreferenced module in playback::rusty::source::http)
reqwest::blocking
lib::podcast
playback::rusty::source::http
This PR refactors some parts in lib::songtag, most notably changing to use async-reqwest instead of blocking, other changes:
Service*::search
's parametertypes
to be a enum instead of magic numbersSongTag
(and dependencies) for logging and comparingto_song_info
for each service (except kugou, because of empty response)static: &str
toconst: &str
Now there is only 1 usage of
reqwest::blocking
anymore, that beinglib::podcast
(and a unreferenced module inplayback::rusty::source::http
)