mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 06:51:28 +00:00
add "extractfeedurls" rpc action that extracts the feed URLs from a HTML page
This commit is contained in:
committed by
Andrew Dolgov
parent
f2c6c0088b
commit
f0266f51ab
@@ -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>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user