Commits (2)
# [1.0.0-alpha.65](https://code.podlibre.org/podlibre/castopod-host/compare/v1.0.0-alpha.64...v1.0.0-alpha.65) (2021-07-22)
### Bug Fixes
- update conditions when checking for empty max_episodes and season_number
([fbad0b5](https://code.podlibre.org/podlibre/castopod-host/commit/fbad0b59f68c65eba2fdcd5a8d3b312b622e9a45))
# [1.0.0-alpha.64](https://code.podlibre.org/podlibre/castopod-host/compare/v1.0.0-alpha.63...v1.0.0-alpha.64) (2021-07-12)
### 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.64');
defined('CP_VERSION') || define('CP_VERSION', '1.0.0-alpha.65');
/*
| --------------------------------------------------------------------
......
......@@ -288,10 +288,11 @@ class PodcastImportController extends BaseController
}
$numberItems = $feed->channel[0]->item->count();
$lastItem =
$this->request->getPost('max_episodes') !== null &&
$this->request->getPost('max_episodes') !== '' &&
$this->request->getPost('max_episodes') < $numberItems
? $this->request->getPost('max_episodes')
? (int) $this->request->getPost('max_episodes')
: $numberItems;
$slugs = [];
......@@ -364,9 +365,9 @@ class PodcastImportController extends BaseController
? $itemNumber
: $nsItunes->episode,
'season_number' =>
$this->request->getPost('season_number') === null
$this->request->getPost('season_number') === ''
? $nsItunes->season
: $this->request->getPost('season_number'),
: (int) $this->request->getPost('season_number'),
'type' => property_exists($nsItunes, 'episodeType') && $nsItunes->episodeType !== null
? (string) $nsItunes->episodeType
: 'full',
......
{
"name": "podlibre/castopod-host",
"version": "1.0.0-alpha64",
"version": "1.0.0-alpha65",
"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.64",
"version": "1.0.0-alpha.65",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "1.0.0-alpha.64",
"version": "1.0.0-alpha.65",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@amcharts/amcharts4": "^4.10.17",
{
"name": "castopod-host",
"version": "1.0.0-alpha.64",
"version": "1.0.0-alpha.65",
"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",
......