|
|
@@ -400,12 +400,17 @@ class FreshRSS_Feed extends Minz_Model {
|
|
|
// si on a utilisé l’auto-discover, notre url va avoir changé
|
|
|
$subscribe_url = $simplePie->subscribe_url(false);
|
|
|
|
|
|
- //HTML to HTML-PRE //ENT_COMPAT except '&'
|
|
|
- $title = strtr(html_only_entity_decode($simplePie->get_title()), ['<' => '<', '>' => '>', '"' => '"']);
|
|
|
- $this->_name($title == '' ? $this->url : $title);
|
|
|
-
|
|
|
- $this->_website(html_only_entity_decode($simplePie->get_link()));
|
|
|
- $this->_description(html_only_entity_decode($simplePie->get_description()));
|
|
|
+ if ($this->name(true) === '') {
|
|
|
+ //HTML to HTML-PRE //ENT_COMPAT except '&'
|
|
|
+ $title = strtr(html_only_entity_decode($simplePie->get_title()), ['<' => '<', '>' => '>', '"' => '"']);
|
|
|
+ $this->_name($title == '' ? $this->url : $title);
|
|
|
+ }
|
|
|
+ if ($this->website() === '') {
|
|
|
+ $this->_website(html_only_entity_decode($simplePie->get_link()));
|
|
|
+ }
|
|
|
+ if ($this->description() === '') {
|
|
|
+ $this->_description(html_only_entity_decode($simplePie->get_description()));
|
|
|
+ }
|
|
|
} else {
|
|
|
//The case of HTTP 301 Moved Permanently
|
|
|
$subscribe_url = $simplePie->subscribe_url(true);
|