mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 23:35:56 +00:00
Made FeedItem_RSS::get_title() more aggresive in finding an article title.
This commit is contained in:
@@ -51,10 +51,14 @@ class FeedItem_RSS extends FeedItem_Common {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_title() {
|
function get_title() {
|
||||||
$title = $this->elem->getElementsByTagName("title")->item(0);
|
$titles = $this->elem->getElementsByTagName("title");
|
||||||
|
|
||||||
if ($title) {
|
foreach ($titles as $title) {
|
||||||
return trim($title->nodeValue);
|
$nv = trim($title->nodeValue);
|
||||||
|
|
||||||
|
if (!empty($nv)) {
|
||||||
|
return $nv;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user