Browse Source

VLCNetworkServerBrowserVLCMedia: remove deprecated 'isParsed' calls

(cherry picked from commit ca39e25d3f3b2fcb7fc7aa308d90e2a50df1f018)
Felix Paul Kühne 9 years ago
parent
commit
46d6cc2895

+ 2 - 7
SharedSources/ServerBrowsing/General/VLCNetworkServerBrowserVLCMedia.m

@@ -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];
         }