From 65d6cea22a57baf070a72f89ac9b730b8a3fdb09 Mon Sep 17 00:00:00 2001 From: Cj Malone Date: Tue, 22 Nov 2016 19:14:35 +0000 Subject: [PATCH] Fallback to mime type from the URL when the defined is invalid --- .../danoeh/antennapod/core/syndication/namespace/NSRSS20.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java index 90dd67a0b..9bd377293 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java @@ -56,7 +56,9 @@ public class NSRSS20 extends Namespace { boolean validType = false; boolean validUrl = !TextUtils.isEmpty(url); - if (type == null) { + if(SyndTypeUtils.enclosureTypeValid(type)) { + validType = true; + } else { type = SyndTypeUtils.getMimeTypeFromUrl(url); }