mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
Media: Don't show website urls
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user