Commit 46d6cc28 authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCNetworkServerBrowserVLCMedia: remove deprecated 'isParsed' calls

(cherry picked from commit ca39e25d3f3b2fcb7fc7aa308d90e2a50df1f018)
parent 049e76a1
Pipeline #45 failed with stage
in 1 minute and 54 seconds
......@@ -77,9 +77,7 @@
}
- (NSString *)title {
if (self.rootMedia.isParsed)
return [self.rootMedia metadataForKey:VLCMetaInformationTitle];
return @"";
return [self.rootMedia metadataForKey:VLCMetaInformationTitle];
}
- (NSArray<id<VLCNetworkServerBrowserItem>> *)items {
......@@ -150,10 +148,7 @@
if (self) {
_media = media;
_container = media.mediaType == VLCMediaTypeDirectory;
NSString *title;
if (media.isParsed) {
title = [media metadataForKey:VLCMetaInformationTitle];
}
NSString *title = [media metadataForKey:VLCMetaInformationTitle];
if (!title) {
title = [media.url.lastPathComponent stringByRemovingPercentEncoding];
}
......
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