Bug fix: OPML import with Newsbeuter
This commit is contained in:
parent
9986301d84
commit
37f5553952
4
miniflux/vendor/PicoFeed/Import.php
vendored
4
miniflux/vendor/PicoFeed/Import.php
vendored
@ -48,12 +48,12 @@ class Import
|
|||||||
|
|
||||||
$this->parseEntries($item);
|
$this->parseEntries($item);
|
||||||
}
|
}
|
||||||
else if (isset($item['text']) && isset($item['xmlUrl']) && isset($item['htmlUrl'])) {
|
else if ((isset($item['text']) || isset($item['title'])) && isset($item['xmlUrl'])) {
|
||||||
|
|
||||||
$entry = new \StdClass;
|
$entry = new \StdClass;
|
||||||
$entry->title = isset($item['title']) ? (string) $item['title'] : (string) $item['text'];
|
$entry->title = isset($item['title']) ? (string) $item['title'] : (string) $item['text'];
|
||||||
$entry->site_url = (string) $item['htmlUrl'];
|
|
||||||
$entry->feed_url = (string) $item['xmlUrl'];
|
$entry->feed_url = (string) $item['xmlUrl'];
|
||||||
|
$entry->site_url = isset($item['htmlUrl']) ? (string) $item['htmlUrl'] : $entry->feed_url;
|
||||||
$entry->type = isset($item['version']) ? (string) $item['version'] : isset($item['type']) ? (string) $item['type'] : 'rss';
|
$entry->type = isset($item['version']) ? (string) $item['version'] : isset($item['type']) ? (string) $item['type'] : 'rss';
|
||||||
$entry->description = isset($item['description']) ? (string) $item['description'] : $entry->title;
|
$entry->description = isset($item['description']) ? (string) $item['description'] : $entry->title;
|
||||||
$this->items[] = $entry;
|
$this->items[] = $entry;
|
||||||
|
Loading…
Reference in New Issue
Block a user