mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
feat(podcast-form): add new_feed_url field to set an url when changing domain or host
This commit is contained in:
parent
634961bcaa
commit
e7eec48e7b
5 changed files with 16 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ class PodcastModel extends Model
|
|||
'language_code' => 'required',
|
||||
'category_id' => 'required',
|
||||
'owner_email' => 'required|valid_email',
|
||||
'new_feed_url' => 'valid_url|permit_empty',
|
||||
'type' => 'required',
|
||||
'created_by' => 'required',
|
||||
'updated_by' => 'required',
|
||||
|
|
|
|||
|
|
@ -328,6 +328,9 @@ class PodcastController extends BaseController
|
|||
'payment_pointer'
|
||||
) === '' ? null : $this->request->getPost('payment_pointer');
|
||||
$this->podcast->custom_rss_string = $this->request->getPost('custom_rss');
|
||||
$this->podcast->new_feed_url = $this->request->getPost('new_feed_url') === '' ? null : $this->request->getPost(
|
||||
'new_feed_url'
|
||||
);
|
||||
$this->podcast->partner_id = $partnerId;
|
||||
$this->podcast->partner_link_url = $partnerLinkUrl;
|
||||
$this->podcast->partner_image_url = $partnerImageUrl;
|
||||
|
|
|
|||
|
|
@ -88,6 +88,8 @@ return [
|
|||
'If you need RSS tags that Castopod does not handle, set them here.',
|
||||
'custom_rss' => 'Custom RSS tags for the podcast',
|
||||
'custom_rss_hint' => 'This will be injected within the ❬channel❭ tag.',
|
||||
'new_feed_url' => 'New feed URL',
|
||||
'new_feed_url_hint' => 'Use this field when you move to another domain or podcast hosting platform. By default, the value is set to the current RSS URL if the podcast is imported.',
|
||||
'partnership' => 'Partnership',
|
||||
'partner_id' => 'ID',
|
||||
'partner_link_url' => 'Link URL',
|
||||
|
|
|
|||
|
|
@ -90,6 +90,8 @@ return [
|
|||
'Si vous avez besoin d’une balise que nous n’avons pas couverte, définissez-la ici.',
|
||||
'custom_rss' => 'Balises RSS personnalisées pour le podcast',
|
||||
'custom_rss_hint' => 'Ceci sera injecté dans la balise ❬channel❭.',
|
||||
'new_feed_url' => 'URL du nouveau flux',
|
||||
'new_feed_url_hint' => 'Utilisez ce champ lorsque vous déplacez ce podcast vers un autre domaine ou que vous changez d’hébergeur. Par défaut, ce champ est rempli avec l’URL du flux actuel si le podcast est importé.',
|
||||
'partnership' => 'Partenariat',
|
||||
'partner_id' => 'ID',
|
||||
'partner_link_url' => 'URL lien',
|
||||
|
|
|
|||
|
|
@ -221,6 +221,14 @@
|
|||
hint="<?= lang('Podcast.form.custom_rss_hint') ?>"
|
||||
content="<?= esc($podcast->custom_rss_string) ?>" />
|
||||
|
||||
<Forms.Field
|
||||
name="new_feed_url"
|
||||
type="url"
|
||||
label="<?= lang('Podcast.form.new_feed_url') ?>"
|
||||
hint="<?= lang('Podcast.form.new_feed_url_hint') ?>"
|
||||
value="<?= $podcast->new_feed_url ?>"
|
||||
/>
|
||||
|
||||
</Forms.Section>
|
||||
|
||||
<Forms.Section
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue