mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 20:17:46 +02:00
fix(import): set default episode type if not set
This commit is contained in:
parent
ddfa2965c3
commit
d7250ab03f
1 changed files with 5 additions and 1 deletions
|
|
@ -380,7 +380,11 @@ class PodcastImportController extends BaseController
|
||||||
$this->request->getPost('season_number') === ''
|
$this->request->getPost('season_number') === ''
|
||||||
? ((string) $nsItunes->season === '' ? null : (int) $nsItunes->season)
|
? ((string) $nsItunes->season === '' ? null : (int) $nsItunes->season)
|
||||||
: (int) $this->request->getPost('season_number'),
|
: (int) $this->request->getPost('season_number'),
|
||||||
'type' => property_exists($nsItunes, 'episodeType') && $nsItunes->episodeType !== null
|
'type' => property_exists($nsItunes, 'episodeType') && in_array(
|
||||||
|
$nsItunes->episodeType,
|
||||||
|
['trailer', 'full', 'bonus'],
|
||||||
|
true
|
||||||
|
)
|
||||||
? (string) $nsItunes->episodeType
|
? (string) $nsItunes->episodeType
|
||||||
: 'full',
|
: 'full',
|
||||||
'is_blocked' => property_exists(
|
'is_blocked' => property_exists(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue