fix broken podcast recognition
This commit is contained in:
parent
d0adfdc690
commit
ccda46bef8
1 changed files with 6 additions and 0 deletions
|
@ -481,6 +481,12 @@ public class DatabaseConnectionOrm {
|
||||||
podcastItem.mimeType = rssItem.getEnclosureMime();
|
podcastItem.mimeType = rssItem.getEnclosureMime();
|
||||||
podcastItem.favIcon = feed.getFaviconUrl();
|
podcastItem.favIcon = feed.getFaviconUrl();
|
||||||
|
|
||||||
|
if("image/jpeg".equals(podcastItem.mimeType)) {
|
||||||
|
// We don't want to accidentally think that enclosed images are podcasts
|
||||||
|
podcastItem.link = "";
|
||||||
|
podcastItem.mimeType = "";
|
||||||
|
}
|
||||||
|
|
||||||
podcastItem.isVideoPodcast = Arrays.asList(DatabaseConnectionOrm.VIDEO_FORMATS).contains(podcastItem.mimeType);
|
podcastItem.isVideoPodcast = Arrays.asList(DatabaseConnectionOrm.VIDEO_FORMATS).contains(podcastItem.mimeType);
|
||||||
|
|
||||||
File file = new File(PodcastDownloadService.getUrlToPodcastFile(context, podcastItem.link, false));
|
File file = new File(PodcastDownloadService.getUrlToPodcastFile(context, podcastItem.link, false));
|
||||||
|
|
Loading…
Reference in a new issue