Commits (2)
# [1.0.0-alpha.79](https://code.podlibre.org/podlibre/castopod-host/compare/v1.0.0-alpha.78...v1.0.0-alpha.79) (2021-12-20)
### Bug Fixes
- **import:** set episode and season numbers to null when not present in item
tag
([3211398](https://code.podlibre.org/podlibre/castopod-host/commit/3211398c78b1b28b76a46427ee07874bbf84a85d))
# [1.0.0-alpha.78](https://code.podlibre.org/podlibre/castopod-host/compare/v1.0.0-alpha.77...v1.0.0-alpha.78) (2021-12-15)
### Bug Fixes
......
......@@ -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.78');
defined('CP_VERSION') || define('CP_VERSION', '1.0.0-alpha.79');
/*
| --------------------------------------------------------------------
......
......@@ -365,10 +365,10 @@ class PodcastImportController extends BaseController
'number' =>
$this->request->getPost('force_renumber') === 'yes'
? $itemNumber
: $nsItunes->episode,
: ((string) $nsItunes->episode === '' ? null : (int) $nsItunes->episode),
'season_number' =>
$this->request->getPost('season_number') === ''
? $nsItunes->season
? ((string) $nsItunes->season === '' ? null : (int) $nsItunes->season)
: (int) $this->request->getPost('season_number'),
'type' => property_exists($nsItunes, 'episodeType') && $nsItunes->episodeType !== null
? (string) $nsItunes->episodeType
......
{
"name": "podlibre/castopod-host",
"version": "1.0.0-alpha78",
"version": "1.0.0-alpha79",
"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",
"license": "AGPL-3.0-or-later",
"require": {
"php": "^8.0",
"james-heinrich/getid3": "~2.0.0-dev",
"james-heinrich/getid3": "^2.0.x-dev",
"whichbrowser/parser": "^v2.1.1",
"geoip2/geoip2": "^v2.11.0",
"myth/auth": "dev-develop",
......
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "49719de3dd6af8c394ea0553e2180b5a",
"content-hash": "af4a438816f7adbbd6950d93ed333e9f",
"packages": [
{
"name": "brick/math",
......@@ -494,16 +494,16 @@
},
{
"name": "james-heinrich/getid3",
"version": "v2.0.0-beta4",
"version": "2.0.x-dev",
"source": {
"type": "git",
"url": "https://github.com/JamesHeinrich/getID3.git",
"reference": "5ad79104e937e7d9c8a9141a97e1f063dd1123f8"
"reference": "ee238d552571c6029898b087d5fc95df826418d6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/JamesHeinrich/getID3/zipball/5ad79104e937e7d9c8a9141a97e1f063dd1123f8",
"reference": "5ad79104e937e7d9c8a9141a97e1f063dd1123f8",
"url": "https://api.github.com/repos/JamesHeinrich/getID3/zipball/ee238d552571c6029898b087d5fc95df826418d6",
"reference": "ee238d552571c6029898b087d5fc95df826418d6",
"shasum": ""
},
"require": {
......@@ -562,9 +562,9 @@
"keywords": ["audio", "codecs", "id3", "metadata", "tags", "video"],
"support": {
"issues": "https://github.com/JamesHeinrich/getID3/issues",
"source": "https://github.com/JamesHeinrich/getID3/tree/v2.0.0-beta4"
"source": "https://github.com/JamesHeinrich/getID3/tree/2.0"
},
"time": "2021-10-06T16:23:45+00:00"
"time": "2021-12-15T17:29:14+00:00"
},
{
"name": "kint-php/kint",
......
{
"name": "castopod-host",
"version": "1.0.0-alpha.78",
"version": "1.0.0-alpha.79",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "castopod-host",
"version": "1.0.0-alpha.78",
"version": "1.0.0-alpha.79",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@amcharts/amcharts4": "^4.10.17",
{
"name": "castopod-host",
"version": "1.0.0-alpha.78",
"version": "1.0.0-alpha.79",
"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",
......