Skip to content

Commit 942c583

Browse files
Media: Don't show website urls
1 parent 24a48c1 commit 942c583

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(fastfetch
77

88
#e.g. +1
99
#This allows to track builds between versions, without GitHub creating a new release
10-
set(PROJECT_VERSION_EXTRA "+2")
10+
set(PROJECT_VERSION_EXTRA "+3")
1111

1212
include(GNUInstallDirs)
1313

src/modules/song.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ void ffPrintSong(FFinstance* instance)
8787
fputs(" - ", stdout);
8888
}
8989

90-
if(media->album.length > 0)
90+
//Some sites (e.g. reddit) expose their url as album. We don't want to show that
91+
if(media->album.length > 0 && !ffStrbufStartsWithIgnCaseS(&media->album, "http"))
9192
{
9293
ffStrbufWriteTo(&media->album, stdout);
9394
fputs(" - ", stdout);

0 commit comments

Comments
 (0)