Merge pull request #1940 from AntennaPod/1.6.0_devel
merge PR 1939 in to devel
This commit is contained in:
commit
c5fa967a10
|
@ -184,7 +184,9 @@ public class HttpDownloader extends Downloader {
|
|||
|
||||
if(request.getFeedfileType() == FeedMedia.FEEDFILETYPE_FEEDMEDIA) {
|
||||
String contentType = response.header("Content-Type");
|
||||
if(!contentType.startsWith("audio/") && !contentType.startsWith("video/")) {
|
||||
Log.d(TAG, "content type: " + contentType);
|
||||
if(!contentType.startsWith("audio/") && !contentType.startsWith("video/") &&
|
||||
!contentType.equals("application/octet-stream")) {
|
||||
onFail(DownloadError.ERROR_FILE_TYPE, null);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue