Implement OPML import in the desktop and touch ui

The core has already implemented parsing OPML files from
URLs and files, it only needs to be exposed by the UI which
this parch does.
This commit is contained in:
Jeena 2016-02-10 19:54:53 +01:00
parent 1386245b50
commit 8aab9adb4d
4 changed files with 46 additions and 0 deletions

View file

@ -66,6 +66,20 @@ SlidePage {
});
},
},
{
label: 'Add from OPML',
callback: function () {
var ctx = { py: py };
pgst.loadPage('TextInputDialog.qml', {
buttonText: 'Subscribe',
placeholderText: 'OPML URL',
pasteOnLoad: true,
callback: function (url) {
ctx.py.call('main.import_opml', [url]);
}
});
},
},
{
label: 'Discover new podcasts',
callback: function () {