Merge pull request #1940 from AntennaPod/1.6.0_devel

merge PR 1939 in to devel
This commit is contained in:
Tom Hennen 2016-05-13 12:54:12 -04:00
commit c5fa967a10
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}