# [1.0.0-alpha.75](https://code.podlibre.org/podlibre/castopod-host/compare/v1.0.0-alpha.74...v1.0.0-alpha.75) (2021-10-05)
### Bug Fixes
- **rss:** cast number type values to string in rss_helper
([7180ae9](https://code.podlibre.org/podlibre/castopod-host/commit/7180ae9ec700930b69c04ed91f8eceea16ad77ce)),
closes [#148](https://code.podlibre.org/podlibre/castopod-host/issues/148)
# [1.0.0-alpha.74](https://code.podlibre.org/podlibre/castopod-host/compare/v1.0.0-alpha.73...v1.0.0-alpha.74) (2021-09-28)
### Features
......
......@@ -11,7 +11,7 @@ declare(strict_types=1);
|
| NOTE: this constant is updated upon release with Continuous Integration.
*/
defined('CP_VERSION') || define('CP_VERSION', '1.0.0-alpha.74');
defined('CP_VERSION') || define('CP_VERSION', '1.0.0-alpha.75');
/*
| --------------------------------------------------------------------
......
......@@ -229,7 +229,7 @@ if (! function_exists('get_rss_feed')) {
}
}
$item->addChildWithCDATA('description', $episode->getDescriptionHtml($serviceSlug));
$item->addChild('duration', $episode->audio_file_duration, $itunesNamespace);
$item->addChild('duration', (string) $episode->audio_file_duration, $itunesNamespace);
$item->addChild('link', $episode->link);
$episodeItunesImage = $item->addChild('image', null, $itunesNamespace);
$episodeItunesImage->addAttribute('href', $episode->image->feed_url);
......@@ -244,9 +244,9 @@ if (! function_exists('get_rss_feed')) {
);
$episode->number &&
$item->addChild('episode', $episode->number, $itunesNamespace);
$item->addChild('episode', (string) $episode->number, $itunesNamespace);
$episode->season_number &&
$item->addChild('season', $episode->season_number, $itunesNamespace);
$item->addChild('season', (string) $episode->season_number, $itunesNamespace);
$item->addChild('episodeType', $episode->type, $itunesNamespace);
// add link to episode comments as podcast-activity format
......@@ -272,8 +272,8 @@ if (! function_exists('get_rss_feed')) {
foreach ($episode->soundbites as $soundbite) {
$soundbiteElement = $item->addChild('soundbite', $soundbite->label, $podcastNamespace);
$soundbiteElement->addAttribute('start_time', $soundbite->start_time);
$soundbiteElement->addAttribute('duration', $soundbite->duration);
$soundbiteElement->addAttribute('start_time', (string) $soundbite->start_time);
$soundbiteElement->addAttribute('duration', (string) $soundbite->duration);
}
foreach ($episode->persons as $person) {
......
{
"name": "podlibre/castopod-host",
"version": "1.0.0-alpha74",
"version": "1.0.0-alpha75",
"type": "project",
"description": "Castopod Host is an open-source hosting platform made for podcasters who want engage and interact with their audience.",
"homepage": "https://castopod.org",
......
{
"name": "castopod-host",
"version": "1.0.0-alpha.74",
"version": "1.0.0-alpha.75",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "castopod-host",
"version": "1.0.0-alpha.74",
"version": "1.0.0-alpha.75",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@amcharts/amcharts4": "^4.10.17",
{
"name": "castopod-host",
"version": "1.0.0-alpha.74",
"version": "1.0.0-alpha.75",
"description": "Castopod Host is an open-source hosting platform made for podcasters who want engage and interact with their audience.",
"private": true,
"license": "AGPL-3.0-or-later",
......