use spotify user id from librespot session for web api requests

fixes broken web api requests for users who logged in with their email address

fixes #98
This commit is contained in:
Henrik Friedrichsen
2019-10-12 16:15:53 +02:00
parent 82a199b5d2
commit d01dad9a57
2 changed files with 10 additions and 4 deletions

View File

@@ -38,7 +38,9 @@ fn get_metadata(track: Option<Track>) -> Metadata {
);
hm.insert(
"mpris:length".to_string(),
Variant(Box::new(track.map(|t| t.duration * 1_000).unwrap_or(0) as i64)),
Variant(Box::new(
track.map(|t| t.duration * 1_000).unwrap_or(0) as i64
)),
);
hm.insert(
"mpris:artUrl".to_string(),