Compare commits
2 Commits
7dfcf9fdea
...
0e3a54a6c4
Author | SHA1 | Date | |
---|---|---|---|
0e3a54a6c4 | |||
c50a0eca64 |
|
@ -320,9 +320,13 @@ class Parser
|
||||||
$episode = new Episode();
|
$episode = new Episode();
|
||||||
$episode->setTitle($item->get_title())
|
$episode->setTitle($item->get_title())
|
||||||
->setDescription($item->get_description())
|
->setDescription($item->get_description())
|
||||||
->setAuthor($item->get_author()->get_name())
|
|
||||||
->setLink($item->get_link());
|
->setLink($item->get_link());
|
||||||
|
|
||||||
|
$author = $item->get_author();
|
||||||
|
if (!is_null($author)) {
|
||||||
|
$episode->setAuthor($author->get_name());
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->config->shouldDefaultToToday()) {
|
if ($this->config->shouldDefaultToToday()) {
|
||||||
$episode->setPublishedDate(new \DateTime($item->get_date()));
|
$episode->setPublishedDate(new \DateTime($item->get_date()));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user