Media: Don't show website urls

This commit is contained in:
Linus Dierheimer
2022-03-23 21:41:52 +01:00
parent 24a48c1fc0
commit 942c583c89
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ project(fastfetch
#e.g. +1
#This allows to track builds between versions, without GitHub creating a new release
set(PROJECT_VERSION_EXTRA "+2")
set(PROJECT_VERSION_EXTRA "+3")
include(GNUInstallDirs)
+2 -1
View File
@@ -87,7 +87,8 @@ void ffPrintSong(FFinstance* instance)
fputs(" - ", stdout);
}
if(media->album.length > 0)
//Some sites (e.g. reddit) expose their url as album. We don't want to show that
if(media->album.length > 0 && !ffStrbufStartsWithIgnCaseS(&media->album, "http"))
{
ffStrbufWriteTo(&media->album, stdout);
fputs(" - ", stdout);