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:
parent
f33479dab8
commit
ec16da866b
|
@ -2973,8 +2973,13 @@
|
||||||
|
|
||||||
if (db_num_rows($result) == 0) {
|
if (db_num_rows($result) == 0) {
|
||||||
if (url_is_html($url)) {
|
if (url_is_html($url)) {
|
||||||
|
$feedUrls = get_feeds_from_html($url);
|
||||||
|
if (count($feedUrls) != 1) {
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
//use feed url as new URL
|
||||||
|
$url = key($feedUrls);
|
||||||
|
}
|
||||||
|
|
||||||
$result = db_query($link,
|
$result = db_query($link,
|
||||||
"INSERT INTO ttrss_feeds
|
"INSERT INTO ttrss_feeds
|
||||||
|
|
Loading…
Reference in New Issue