Skip to content

Commit

Permalink
Merge pull request #475 from ashthespy/collections
Browse files Browse the repository at this point in the history
Fetch context for Spotify Collection types as well
  • Loading branch information
awiouy committed May 11, 2020
2 parents 0aa9bc6 + 98e69ab commit 0056400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion connect/src/spirc.rs
Expand Up @@ -917,7 +917,9 @@ impl SpircTask {
);
let context_uri = self.state.get_context_uri().to_owned();
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.context_fut = self.resolve_station(&context_uri);
Expand Down

0 comments on commit 0056400

Please sign in to comment.