Explorar o código

fix download name for plex and possible other services

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

+ 1 - 1
Sources/LocalNetworkConnectivity/ServerBrowsing/VLCNetworkServerBrowserViewController.m

@@ -104,7 +104,7 @@
 
 - (void)_downloadItem:(id<VLCNetworkServerBrowserItem>)item
 {
-    [[VLCDownloadViewController sharedInstance] addURLToDownloadList:item.URL fileNameOfMedia:nil];
+    [[VLCDownloadViewController sharedInstance] addURLToDownloadList:item.URL fileNameOfMedia:[item.name stringByAppendingPathExtension:item.URL.pathExtension]];
 }
 
 - (void)_streamFileForItem:(id<VLCNetworkServerBrowserItem>)item