mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fetch context for Spotify Collection types as well
Liked songs for example
This commit is contained in:
parent
7670ffe101
commit
98e69ab0c4
1 changed files with 3 additions and 1 deletions
|
@ -917,7 +917,9 @@ impl SpircTask {
|
||||||
);
|
);
|
||||||
let context_uri = self.state.get_context_uri().to_owned();
|
let context_uri = self.state.get_context_uri().to_owned();
|
||||||
if (context_uri.starts_with("spotify:station:")
|
if (context_uri.starts_with("spotify:station:")
|
||||||
|| context_uri.starts_with("spotify:dailymix:"))
|
|| context_uri.starts_with("spotify:dailymix:")
|
||||||
|
// spotify:user:xxx:collection
|
||||||
|
|| context_uri.starts_with(&format!("spotify:user:{}:collection",self.session.username())))
|
||||||
&& ((self.state.get_track().len() as u32) - new_index) < CONTEXT_FETCH_THRESHOLD
|
&& ((self.state.get_track().len() as u32) - new_index) < CONTEXT_FETCH_THRESHOLD
|
||||||
{
|
{
|
||||||
self.context_fut = self.resolve_station(&context_uri);
|
self.context_fut = self.resolve_station(&context_uri);
|
||||||
|
|
Loading…
Reference in a new issue