Skip to content

Commit 9929635

Browse files
authored
Merge pull request #1267 from acolombier/fix/update-spotify-version
fix: change spotify version needed in clientoken to use semantic format
2 parents 27b8a6d + d881f46 commit 9929635

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/src/version.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ pub const BUILD_ID: &str = env!("LIBRESPOT_BUILD_ID");
1919
/// The protocol version of the Spotify desktop client.
2020
pub const SPOTIFY_VERSION: u64 = 117300517;
2121

22+
/// The semantic version of the Spotify desktop client.
23+
pub const SPOTIFY_SEMANTIC_VERSION: &str = "1.2.31.1205.g4d59ad7c";
24+
2225
/// The protocol version of the Spotify mobile app.
2326
pub const SPOTIFY_MOBILE_VERSION: &str = "8.6.84";
2427

@@ -28,6 +31,6 @@ pub const FALLBACK_USER_AGENT: &str = "Spotify/117300517 Linux/0 (librespot)";
2831
pub fn spotify_version() -> String {
2932
match std::env::consts::OS {
3033
"android" | "ios" => SPOTIFY_MOBILE_VERSION.to_owned(),
31-
_ => SPOTIFY_VERSION.to_string(),
34+
_ => SPOTIFY_SEMANTIC_VERSION.to_string(),
3235
}
3336
}

0 commit comments

Comments
 (0)