Skip to content

Commit

Permalink
Music playlist items shall only show song title and artist
Browse files Browse the repository at this point in the history
Let the 2nd row show "artist" only, not "album - artist" which often made the artist non-readable as the album name took all the available space.
  • Loading branch information
wutschel committed Feb 24, 2025
1 parent becfc24 commit 9e1daeb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions XBMC Remote/NowPlaying.m
Original file line number Diff line number Diff line change
Expand Up @@ -2076,10 +2076,7 @@ - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSI
}
else if ([item[@"type"] isEqualToString:@"song"] ||
[item[@"type"] isEqualToString:@"musicvideo"]) {
NSString *album = item[@"album"];
NSString *artist = item[@"artist"];
NSString *dash = album.length && artist.length ? @" - " : @"";
subLabel.text = [NSString stringWithFormat:@"%@%@%@", album, dash, artist];
subLabel.text = item[@"artist"];
}
else if ([item[@"type"] isEqualToString:@"movie"]) {
subLabel.text = item[@"genre"];
Expand Down

0 comments on commit 9e1daeb

Please sign in to comment.