Selaa lähdekoodia

Local Server Folder List: fix ftp download URL creation

Felix Paul Kühne 12 vuotta sitten
vanhempi
commit
77fd9eabf3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      AspenProject/VLCLocalServerFolderListViewController.m

+ 1 - 1
AspenProject/VLCLocalServerFolderListViewController.m

@@ -265,7 +265,7 @@
 
 - (void)_downloadFTPFile:(NSString *)fileName
 {
-    NSURL *URLToQueue = [NSURL URLWithString:[[@"ftp" stringByAppendingFormat:@"://%@%@/%@", [self _credentials], _ftpServerAddress, _ftpServerPath] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
+    NSURL *URLToQueue = [NSURL URLWithString:[[@"ftp" stringByAppendingFormat:@"://%@%@/%@/%@", [self _credentials], _ftpServerAddress, _ftpServerPath, fileName] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
 
     [[(VLCAppDelegate*)[UIApplication sharedApplication].delegate downloadViewController] addURLToDownloadList:URLToQueue];
 }