We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93871c1 commit 85578c6Copy full SHA for 85578c6
src/modules/player.c
@@ -21,7 +21,11 @@ void ffPrintPlayer(FFinstance* instance)
21
ffStrbufInit(&playerPretty);
22
23
//If we are on a website, prepend the website name
24
- if(ffStrbufStartsWithS(&media->url, "https://www."))
+ 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."))
29
ffStrbufAppendS(&playerPretty, media->url.chars + 12);
30
else if(ffStrbufStartsWithS(&media->url, "http://www."))
31
ffStrbufAppendS(&playerPretty, media->url.chars + 11);
0 commit comments