Fallback to mime type from the URL when the defined is invalid
This commit is contained in:
parent
7f29627ac7
commit
65d6cea22a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue