mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-03 23:09:18 +02:00
parent
779653f75b
commit
c9fb987fcf
1 changed files with 2 additions and 2 deletions
|
|
@ -295,7 +295,7 @@ if (! function_exists('get_rss_feed')) {
|
|||
}
|
||||
|
||||
$item->addChildWithCDATA('description', $episode->getDescriptionHtml($serviceSlug));
|
||||
$item->addChild('duration', (string) $episode->audio->duration, $itunesNamespace);
|
||||
$item->addChild('duration', (string) round($episode->audio->duration), $itunesNamespace);
|
||||
$item->addChild('link', $episode->link);
|
||||
$episodeItunesImage = $item->addChild('image', null, $itunesNamespace);
|
||||
$episodeItunesImage->addAttribute('href', $episode->cover->feed_url);
|
||||
|
|
@ -361,7 +361,7 @@ if (! function_exists('get_rss_feed')) {
|
|||
// TODO: differentiate video from soundbites?
|
||||
$soundbiteElement = $item->addChild('soundbite', $soundbite->title, $podcastNamespace);
|
||||
$soundbiteElement->addAttribute('start_time', (string) $soundbite->start_time);
|
||||
$soundbiteElement->addAttribute('duration', (string) $soundbite->duration);
|
||||
$soundbiteElement->addAttribute('duration', (string) round($soundbite->duration, 3));
|
||||
}
|
||||
|
||||
foreach ($episode->persons as $person) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue