Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Commit 3c3a33a

Browse files
author
Sammy Sammon
committed
Removed 'Requested by' when it wasn't requested by anybody
1 parent f2e4c2f commit 3c3a33a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Form1.cs

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ void GetStats()
145145
Stats stats = DownloadStats();
146146
lblTitle.Text = stats.song_name;
147147
string middle = string.IsNullOrWhiteSpace(stats.artist_name) ? "Requested by " : "; Requested by ";
148+
middle = string.IsNullOrEmpty(stats.requested_by) ? "" : middle;
148149
lblArtist.Text = stats.artist_name.Trim() + middle + stats.requested_by;
149150
});
150151
thread.Start();

0 commit comments

Comments
 (0)