Skip to content

Commit 85578c6

Browse files
Don't use url for vlc or spotify player name
1 parent 93871c1 commit 85578c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/modules/player.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ void ffPrintPlayer(FFinstance* instance)
2121
ffStrbufInit(&playerPretty);
2222

2323
//If we are on a website, prepend the website name
24-
if(ffStrbufStartsWithS(&media->url, "https://www."))
24+
if(
25+
ffStrbufIgnCaseCompS(&media->busNameShort, "spotify") == 0 ||
26+
ffStrbufIgnCaseCompS(&media->busNameShort, "vlc") == 0
27+
) {} // do noting, surely not a website, even if the url is set
28+
else if(ffStrbufStartsWithS(&media->url, "https://www."))
2529
ffStrbufAppendS(&playerPretty, media->url.chars + 12);
2630
else if(ffStrbufStartsWithS(&media->url, "http://www."))
2731
ffStrbufAppendS(&playerPretty, media->url.chars + 11);

0 commit comments

Comments
 (0)