diff --git a/src/de/danoeh/antennapod/opml/OpmlReader.java b/src/de/danoeh/antennapod/opml/OpmlReader.java index 476fc151a..b7673dcb5 100644 --- a/src/de/danoeh/antennapod/opml/OpmlReader.java +++ b/src/de/danoeh/antennapod/opml/OpmlReader.java @@ -69,7 +69,7 @@ public class OpmlReader { Log.d(TAG, "Found new Opml element"); OpmlElement element = new OpmlElement(); element.setText(xpp.getAttributeValue(null, TEXT)); - element.setXmlUrl(URLChecker.prepareURL(xpp.getAttributeValue(null, XMLURL))); + element.setXmlUrl(xpp.getAttributeValue(null, XMLURL)); element.setHtmlUrl(xpp.getAttributeValue(null, HTMLURL)); element.setType(xpp.getAttributeValue(null, TYPE)); if (element.getXmlUrl() != null) { diff --git a/src/de/danoeh/antennapod/storage/DownloadRequester.java b/src/de/danoeh/antennapod/storage/DownloadRequester.java index 0f341e568..356201a2d 100644 --- a/src/de/danoeh/antennapod/storage/DownloadRequester.java +++ b/src/de/danoeh/antennapod/storage/DownloadRequester.java @@ -21,6 +21,7 @@ import de.danoeh.antennapod.feed.FeedImage; import de.danoeh.antennapod.feed.FeedMedia; import de.danoeh.antennapod.service.DownloadService; import de.danoeh.antennapod.util.NumberGenerator; +import de.danoeh.antennapod.util.URLChecker; public class DownloadRequester {// TODO handle externalstorage missing private static final String TAG = "DownloadRequester"; @@ -61,6 +62,7 @@ public class DownloadRequester {// TODO handle externalstorage missing } if (AppConfig.DEBUG) Log.d(TAG, "Requesting download of url " + item.getDownload_url()); downloads.add(item); + item.setDownload_url(URLChecker.prepareURL(item.getDownload_url())); DownloadManager.Request request = new DownloadManager.Request( Uri.parse(item.getDownload_url())).setDestinationUri(Uri .fromFile(dest));