librespot_core/
version.rs1pub const VERSION_STRING: &str = concat!("librespot-", env!("VERGEN_GIT_SHA"));
3
4pub const BUILD_DATE: &str = env!("VERGEN_BUILD_DATE");
6
7pub const SHA_SHORT: &str = env!("VERGEN_GIT_SHA");
9
10pub const COMMIT_DATE: &str = env!("VERGEN_GIT_COMMIT_DATE");
12
13pub const SEMVER: &str = env!("CARGO_PKG_VERSION");
15
16pub const BUILD_ID: &str = env!("LIBRESPOT_BUILD_ID");
18
19pub const SPOTIFY_VERSION: u64 = 124200290;
21
22pub const SPOTIFY_SEMANTIC_VERSION: &str = "1.2.52.442";
24
25pub const SPOTIFY_PROPERTY_SET_ID: &str = "b4c7e4b5835079ed94391b2e65fca0fdba65eb50";
27
28pub const SPOTIFY_MOBILE_VERSION: &str = "8.9.82.620";
30
31pub const SPOTIFY_MOBILE_PROPERTY_SET_ID: &str =
33 "5ec87c2cc32e7c509703582cfaaa3c7ad253129d5701127c1f5eab5c9531736c";
34
35pub const SPOTIFY_SPIRC_VERSION: &str = "3.2.6";
37
38pub const FALLBACK_USER_AGENT: &str = "Spotify/124200290 Linux/0 (librespot)";
40
41pub fn spotify_version() -> String {
42 match crate::config::OS {
43 "android" | "ios" => SPOTIFY_MOBILE_VERSION.to_owned(),
44 _ => SPOTIFY_VERSION.to_string(),
45 }
46}
47
48pub fn spotify_semantic_version() -> String {
49 match crate::config::OS {
50 "android" | "ios" => SPOTIFY_MOBILE_VERSION.to_owned(),
51 _ => SPOTIFY_SEMANTIC_VERSION.to_string(),
52 }
53}