mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-09-20 05:27:31 -07:00
fix(spotify): parse web player correctly
This commit is contained in:
parent
98e0039200
commit
744764a05e
|
@ -22,7 +22,7 @@ func (s *Spotify) Enabled() bool {
|
|||
|
||||
func (s *Spotify) parseWebSpotifyTitle(windowTitle string) bool {
|
||||
windowTitle = strings.TrimPrefix(windowTitle, "Spotify - ")
|
||||
return s.parseSpotifyTitle(windowTitle, " · ")
|
||||
return s.parseSpotifyTitle(windowTitle, " • ")
|
||||
}
|
||||
|
||||
func (s *Spotify) parseSpotifyTitle(windowTitle, separator string) bool {
|
||||
|
|
|
@ -58,7 +58,7 @@ func TestSpotifyWindowsPWA(t *testing.T) {
|
|||
Case: "Playing",
|
||||
ExpectedString: "\ue602 Snow in Stockholm - Sarah, the Illstrumentalist",
|
||||
ExpectedEnabled: true,
|
||||
Title: "Spotify - Snow in Stockholm · Sarah, the Illstrumentalist",
|
||||
Title: "Spotify - Snow in Stockholm • Sarah, the Illstrumentalist",
|
||||
},
|
||||
{
|
||||
Case: "Stopped",
|
||||
|
|
Loading…
Reference in a new issue