1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-07-01 12:40:50 +02:00

part of #276: if the html page has only one single feed, we subscribe to that one directly without asking

This commit is contained in:
Christian Weiske 2010-11-08 20:48:15 +01:00 committed by Andrew Dolgov
parent f33479dab8
commit ec16da866b

View File

@ -2973,7 +2973,12 @@
if (db_num_rows($result) == 0) { if (db_num_rows($result) == 0) {
if (url_is_html($url)) { if (url_is_html($url)) {
return 3; $feedUrls = get_feeds_from_html($url);
if (count($feedUrls) != 1) {
return 3;
}
//use feed url as new URL
$url = key($feedUrls);
} }
$result = db_query($link, $result = db_query($link,