handle rate limiting imposed by spotify web api

closes #29
This commit is contained in:
Henrik Friedrichsen
2019-03-20 23:12:58 +01:00
parent 8ee3ffed92
commit 2b45778196
3 changed files with 32 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ impl SearchView {
v.set_content(q);
});
if let Ok(results) = spotify.search(&query, 50, 0) {
if let Some(results) = spotify.search(&query, 50, 0) {
let tracks = results
.tracks
.items