Added OpenUri D-BUS MPRIS support.

Removed "user:" from URIType check because Spotify doesn't always provide it.
This commit is contained in:
Bettehem
2020-04-27 09:50:54 +03:00
committed by Henrik Friedrichsen
parent db93e3e07c
commit 2e89cc3d01
2 changed files with 76 additions and 4 deletions

View File

@@ -819,7 +819,7 @@ impl URIType {
Some(URIType::Artist)
} else if s.starts_with("spotify:track:") {
Some(URIType::Track)
} else if s.starts_with("spotify:user:") && s.contains(":playlist:") {
} else if s.starts_with("spotify:") && s.contains(":playlist:") {
Some(URIType::Playlist)
} else {
None