diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-05-13 09:51:02 +0200 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-05-13 18:02:27 +0200 |
commit | 8ee15a150e824305a256ed5308dd63acfedb2a52 (patch) | |
tree | 79d05a99ad9df74de5e993ff84487693d10364dd /core | |
parent | 0171b5eb59b117fc21baeb1f2633035bfa824605 (diff) | |
download | AntennaPod-8ee15a150e824305a256ed5308dd63acfedb2a52.zip |
Accept media content type application/octet-stream
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java index cb0f8f1ea..556c008d4 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/HttpDownloader.java @@ -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; } |