add my import :)

This commit is contained in:
Colin Frei 2013-07-15 10:07:11 +02:00
parent c11fdb9787
commit cb5242f79b
3 changed files with 36 additions and 7 deletions

View file

@ -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);
});
}
}