diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSMedia.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSMedia.java index 46452085f..839e2ae0c 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSMedia.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSMedia.java @@ -41,7 +41,9 @@ public class NSMedia extends Namespace { String type = attributes.getValue(MIME_TYPE); String defaultStr = attributes.getValue(DEFAULT); boolean validType; - boolean isDefault = false; + + boolean isDefault = "true".equals(defaultStr); + if (SyndTypeUtils.enclosureTypeValid(type)) { validType = true; } else { @@ -49,9 +51,6 @@ public class NSMedia extends Namespace { validType = type != null; } - if (defaultStr == "true") - isDefault = true; - if (state.getCurrentItem() != null && (state.getCurrentItem().getMedia() == null || isDefault) && url != null && validType) {