Commit 0b56588c authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback: optimize meta data handling for media list contents

parent 3cdd12f2
......@@ -1384,11 +1384,18 @@
- (void)_updateDisplayedMetadata
{
MLFile *item = self.fileFromMediaLibrary;
MLFile *item;
NSString *title;
NSString *artist;
NSString *albumName;
NSString *trackNumber;
if (self.fileFromMediaLibrary)
item = self.fileFromMediaLibrary;
else if (self.mediaList) {
NSArray *matches = [MLFile fileForURL:[_mediaPlayer.media.url absoluteString]];
if (matches.count > 0)
item = matches[0];
}
if (item) {
if (item.isAlbumTrack) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment