mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 11:37:46 +02:00
feat: add premium podcasts to manage subscriptions for premium episodes
closes #193
This commit is contained in:
parent
b6114d3d93
commit
3234500e2d
101 changed files with 2572 additions and 110 deletions
|
|
@ -193,6 +193,7 @@ class EpisodeController extends BaseController
|
|||
'type' => $this->request->getPost('type'),
|
||||
'is_blocked' => $this->request->getPost('block') === 'yes',
|
||||
'custom_rss_string' => $this->request->getPost('custom_rss'),
|
||||
'is_premium' => $this->request->getPost('premium') === 'yes',
|
||||
'created_by' => user_id(),
|
||||
'updated_by' => user_id(),
|
||||
'published_at' => null,
|
||||
|
|
@ -308,6 +309,7 @@ class EpisodeController extends BaseController
|
|||
$this->episode->type = $this->request->getPost('type');
|
||||
$this->episode->is_blocked = $this->request->getPost('block') === 'yes';
|
||||
$this->episode->custom_rss_string = $this->request->getPost('custom_rss');
|
||||
$this->episode->is_premium = $this->request->getPost('premium') === 'yes';
|
||||
|
||||
$this->episode->updated_by = (int) user_id();
|
||||
$this->episode->setAudio($this->request->getFile('audio_file'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue