Parcourir la source

Update subscription uri

This fixes an issue loading new tracks probably caused by an update on spotify's side. The fix was suggested by @worleydl, all glory to them for figuring it out.
Åke Forslund il y a 6 ans
Parent
commit
9b6b55ee7d
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      connect/src/spirc.rs

+ 2 - 1
connect/src/spirc.rs

@@ -214,7 +214,8 @@ impl Spirc {
 
         let ident = session.device_id().to_owned();
 
-        let uri = format!("hm://remote/3/user/{}/", session.username());
+        // Uri updated in response to issue #288
+        let uri = format!("hm://remote/user/{}/", session.username());
 
         let subscription = session.mercury().subscribe(&uri as &str);
         let subscription = subscription