Explorar o código

fix title in playback view for Plex items

Tobias Conradi %!s(int64=9) %!d(string=hai) anos
pai
achega
c5ffaa053e

+ 6 - 1
SharedSources/ServerBrowsing/Plex/VLCNetworkServerBrowserPlex.m

@@ -205,7 +205,12 @@
     if (!_URL)
         return nil;
 
-    return [VLCMedia mediaWithURL:_URL];
+    VLCMedia *media =  [VLCMedia mediaWithURL:_URL];
+    NSString *title = self.name;
+    if (title.length) {
+        [media setMetadata:self.name forKey:VLCMetaInformationTitle];
+    }
+    return media;
 }
 
 - (id<VLCNetworkServerBrowser>)containerBrowser {