added possibility to import OPML file via URL
This commit is contained in:
parent
aa91965541
commit
77baac7ca6
2 changed files with 17 additions and 2 deletions
|
@ -236,6 +236,14 @@ function DevCtrl($scope, downloader, updateFeedsAlarmManager, opml, downloaderBa
|
|||
var url = 'https://raw.github.com/colinfrei/Podcast/master/podcasts.xml';
|
||||
var xmlPromise = downloaderBackend.downloadXml(url);
|
||||
|
||||
xmlPromise.then(function(xml) {
|
||||
opml.import(xml);
|
||||
});
|
||||
}
|
||||
$scope.importOpmlFromUrl = function() {
|
||||
var url = document.getElementById("importOpmlFromUrlInput").value;
|
||||
var xmlPromise = downloaderBackend.downloadXml(url);
|
||||
|
||||
xmlPromise.then(function(xml) {
|
||||
opml.import(xml);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue