mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-23 07:25:25 +01:00
Moved URL preparer call into Downloadrequester
This commit is contained in:
parent
c3d25b5106
commit
dcddf476bf
@ -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) {
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user