mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 12:07:46 +02:00
feat(media): clean media api + create an entity per media type
This commit is contained in:
parent
b09acf6c65
commit
fafaa7e689
46 changed files with 482 additions and 610 deletions
|
|
@ -68,14 +68,14 @@ class EpisodeModel extends Model
|
|||
'guid',
|
||||
'title',
|
||||
'slug',
|
||||
'audio_file_id',
|
||||
'audio_id',
|
||||
'description_markdown',
|
||||
'description_html',
|
||||
'cover_id',
|
||||
'transcript_file_id',
|
||||
'transcript_file_remote_url',
|
||||
'chapters_file_id',
|
||||
'chapters_file_remote_url',
|
||||
'transcript_id',
|
||||
'transcript_remote_url',
|
||||
'chapters_id',
|
||||
'chapters_remote_url',
|
||||
'parental_advisory',
|
||||
'number',
|
||||
'season_number',
|
||||
|
|
@ -114,13 +114,13 @@ class EpisodeModel extends Model
|
|||
'podcast_id' => 'required',
|
||||
'title' => 'required',
|
||||
'slug' => 'required|regex_match[/^[a-zA-Z0-9\-]{1,191}$/]',
|
||||
'audio_file_id' => 'required',
|
||||
'audio_id' => 'required',
|
||||
'description_markdown' => 'required',
|
||||
'number' => 'is_natural_no_zero|permit_empty',
|
||||
'season_number' => 'is_natural_no_zero|permit_empty',
|
||||
'type' => 'required',
|
||||
'transcript_file_remote_url' => 'valid_url|permit_empty',
|
||||
'chapters_file_remote_url' => 'valid_url|permit_empty',
|
||||
'transcript_remote_url' => 'valid_url|permit_empty',
|
||||
'chapters_remote_url' => 'valid_url|permit_empty',
|
||||
'published_at' => 'valid_date|permit_empty',
|
||||
'created_by' => 'required',
|
||||
'updated_by' => 'required',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue