mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 12:37:46 +02:00
fix(import): set episode and season numbers to null when not present in item tag
update getid3 to latest dev branch
This commit is contained in:
parent
548234aa4d
commit
3211398c78
3 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue