Don't use url for vlc or spotify player name

This commit is contained in:
Linus Dierheimer
2022-09-18 17:32:15 +02:00
parent 93871c1e98
commit 85578c6807
+5 -1
View File
@@ -21,7 +21,11 @@ void ffPrintPlayer(FFinstance* instance)
ffStrbufInit(&playerPretty);
//If we are on a website, prepend the website name
if(ffStrbufStartsWithS(&media->url, "https://www."))
if(
ffStrbufIgnCaseCompS(&media->busNameShort, "spotify") == 0 ||
ffStrbufIgnCaseCompS(&media->busNameShort, "vlc") == 0
) {} // do noting, surely not a website, even if the url is set
else if(ffStrbufStartsWithS(&media->url, "https://www."))
ffStrbufAppendS(&playerPretty, media->url.chars + 12);
else if(ffStrbufStartsWithS(&media->url, "http://www."))
ffStrbufAppendS(&playerPretty, media->url.chars + 11);