add my import :)
This commit is contained in:
parent
c11fdb9787
commit
cb5242f79b
3 changed files with 36 additions and 7 deletions
|
@ -164,7 +164,7 @@ function ImportCtrl($scope, pageSwitcher, google)
|
|||
|
||||
|
||||
|
||||
function DevCtrl($scope, downloader, updateFeedsAlarmManager)
|
||||
function DevCtrl($scope, downloader, updateFeedsAlarmManager, opml, downloaderBackend)
|
||||
{
|
||||
$scope.downloadFiles = function() {
|
||||
downloader.downloadAll();
|
||||
|
@ -177,4 +177,12 @@ function DevCtrl($scope, downloader, updateFeedsAlarmManager)
|
|||
$scope.setAlarmTmp = function() {
|
||||
updateFeedsAlarmManager.setAlarm();
|
||||
};
|
||||
$scope.importColinsOpml = function() {
|
||||
var url = 'https://raw.github.com/colinfrei/Podcast/master/podcasts.xml';
|
||||
var xmlPromise = downloaderBackend.downloadXml(url);
|
||||
|
||||
xmlPromise.then(function(xml) {
|
||||
opml.import(xml);
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue