Commit 72867859 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

http file downloader: remove check for supported file format

The check was run on the wrong variable and therefore was false more often than needed. Further, with 43faa18e, all files will be visible to the user again

Closes #82)

(cherry picked from commit e2451953)
parent 52dc2b5b
......@@ -110,16 +110,6 @@
if (_statusCode == 200) {
_expectedDownloadSize = [response expectedContentLength];
APLog(@"expected download size: %lli", _expectedDownloadSize);
if (![[response suggestedFilename] isSupportedFormat]) { //handle unsupported format
VLCAlertView *alert = [[VLCAlertView alloc] initWithTitle:NSLocalizedString(@"FILE_NOT_SUPPORTED", nil)
message:[NSString stringWithFormat:NSLocalizedString(@"FILE_NOT_SUPPORTED_LONG", nil), [response suggestedFilename]]
cancelButtonTitle:NSLocalizedString(@"BUTTON_OK", nil)
[alert show];
[_sessionTask cancel];
[self _downloadEnded];
if (_expectedDownloadSize > [[UIDevice currentDevice] VLCFreeDiskSpace].longLongValue) { //handle too big a download
VLCAlertView *alert = [[VLCAlertView alloc] initWithTitle:NSLocalizedString(@"DISK_FULL", nil)
message:[NSString stringWithFormat:NSLocalizedString(@"DISK_FULL_FORMAT", nil), _fileName, [[UIDevice currentDevice] model]]
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