Commit fa40d70d authored by Tobias's avatar Tobias Committed by Felix Paul Kühne

change method signature to be more readable

parent 13ce7bcb
......@@ -148,7 +148,7 @@
if (!_httpDownloader.downloadInProgress) {
_currentDownloadType = kVLCDownloadViaHTTP;
if (![_currentDownloadFilename.firstObject isEqualToString:@""]) {
[_httpDownloader downloadFileFromURLwithFileName:_currentDownloads.firstObject fileNameOfMedia:_currentDownloadFilename.firstObject];
[_httpDownloader downloadFileFromURL:_currentDownloads.firstObject withFileName:_currentDownloadFilename.firstObject];
_humanReadableFilename = [_currentDownloadFilename objectAtIndex:0];
} else {
[_httpDownloader downloadFileFromURL:_currentDownloads.firstObject];
......
......@@ -31,6 +31,6 @@
- (void)cancelDownload;
- (void)downloadFileFromURL:(NSURL *)url;
- (void)downloadFileFromURLwithFileName:(NSURL *)url fileNameOfMedia:(NSString*) fileName;
- (void)downloadFileFromURL:(NSURL *)url withFileName:(NSString*) fileName;
@end
......@@ -38,10 +38,10 @@
- (void)downloadFileFromURL:(NSURL *)url
{
[self downloadFileFromURLwithFileName:url fileNameOfMedia:nil];
[self downloadFileFromURL:url withFileName:nil];
}
- (void)downloadFileFromURLwithFileName:(NSURL *)url fileNameOfMedia:(NSString*)fileName
- (void)downloadFileFromURL:(NSURL *)url withFileName:(NSString*)fileName
{
NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *basePath = [searchPaths[0] stringByAppendingPathComponent:@"Upload"];
......
......@@ -170,7 +170,7 @@
{
_fileDownloader = [[VLCHTTPFileDownloader alloc] init];
_fileDownloader.delegate = self;
[_fileDownloader downloadFileFromURLwithFileName:[NSURL URLWithString:self.downloadPath] fileNameOfMedia:self.name];
[_fileDownloader downloadFileFromURL:[NSURL URLWithString:self.downloadPath] withFileName:self.name];
}
- (void)downloadStarted
......
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