Small Podcast API fix

This commit is contained in:
drigato 2015-09-23 15:54:42 -04:00
parent e610ce8af7
commit 07b63abfe1
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ class Podcast extends BasePodcast
$podcastArray["link"] = $rss->get_link(); $podcastArray["link"] = $rss->get_link();
$podcastArray["language"] = $rss->get_language(); $podcastArray["language"] = $rss->get_language();
$podcastArray["copyright"] = $rss->get_copyright(); $podcastArray["copyright"] = $rss->get_copyright();
$podcastArray["creator"] = $rss->get_author(); $podcastArray["creator"] = $rss->get_author()->get_name();
$podcastArray["category"] = $rss->get_categories(); $podcastArray["category"] = $rss->get_categories();
/*$podcastArray["title"] = (string)$rss->title; /*$podcastArray["title"] = (string)$rss->title;
@ -94,7 +94,7 @@ class Podcast extends BasePodcast
"title" => $item->get_title(), "title" => $item->get_title(),
"author" => $item->get_author()->get_name(), "author" => $item->get_author()->get_name(),
"description" => $item->get_description(), "description" => $item->get_description(),
"pub_date" => $item->get_date("Y-m-d H:i:s"), "pubDate" => $item->get_date("Y-m-d H:i:s"),
"link" => $item->get_enclosure()->get_link() "link" => $item->get_enclosure()->get_link()
)); ));
} }