Accept 'application/octet-stream' as valid media mime type
This commit is contained in:
parent
ffa65ef00e
commit
527dfe737e
|
@ -1,15 +1,22 @@
|
||||||
package de.danoeh.antennapod.core.syndication.util;
|
package de.danoeh.antennapod.core.syndication.util;
|
||||||
|
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.webkit.MimeTypeMap;
|
import android.webkit.MimeTypeMap;
|
||||||
|
|
||||||
import org.apache.commons.io.FilenameUtils;
|
import org.apache.commons.io.FilenameUtils;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
/** Utility class for handling MIME-Types of enclosures */
|
/** Utility class for handling MIME-Types of enclosures */
|
||||||
public class SyndTypeUtils {
|
public class SyndTypeUtils {
|
||||||
|
|
||||||
private static final String VALID_MEDIA_MIMETYPE = "audio/.*" + "|" + "video/.*"
|
private static final String VALID_MEDIA_MIMETYPE = TextUtils.join("|", Arrays.asList(
|
||||||
+ "|" + "application/ogg";
|
"audio/.*",
|
||||||
private static final String VALID_IMAGE_MIMETYPE = "image/.*";
|
"video/.*",
|
||||||
|
"application/ogg",
|
||||||
|
"application/octet-stream"));
|
||||||
|
|
||||||
|
private static final String VALID_IMAGE_MIMETYPE = "image/.*";
|
||||||
|
|
||||||
private SyndTypeUtils() {
|
private SyndTypeUtils() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue