diff options
author | Christian Weiske <[email protected]> | 2010-11-07 15:45:50 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-08 23:10:22 +0300 |
commit | f0266f51ab36bf389415bcac9fe26c8084c67bdd (patch) | |
tree | 4ba5e1e99530cb9b1e6738764eeada1439158d34 /modules/backend-rpc.php | |
parent | f2c6c0088bccbfc9b1259559551064b9a3648acf (diff) |
add "extractfeedurls" rpc action that extracts the feed URLs from a HTML page
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r-- | modules/backend-rpc.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 7ccb30692..54d636d18 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -123,6 +123,16 @@ } + if ($subop == "extractfeedurls") { + print "<rpc-reply>"; + + $urls = get_feeds_from_html($_REQUEST['url']); + print "<urls><![CDATA[" . json_encode($urls) . "]]></urls>"; + + print "</rpc-reply>"; + return; + } + if ($subop == "togglepref") { print "<rpc-reply>"; |