mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 03:57:45 +02:00
feat(rss): update monetization tag so that it meets PodcastIndex requirements
This commit is contained in:
parent
81c1c038c4
commit
4c7ecbee83
1 changed files with 11 additions and 3 deletions
|
|
@ -67,11 +67,19 @@ function get_rss_feed($podcast, $serviceSlug = '')
|
||||||
$channel->addChild('language', $podcast->language_code);
|
$channel->addChild('language', $podcast->language_code);
|
||||||
|
|
||||||
if (!empty($podcast->payment_pointer)) {
|
if (!empty($podcast->payment_pointer)) {
|
||||||
$channel->addChild(
|
$valueElement = $channel->addChild('value', null, $podcast_namespace);
|
||||||
'monetization',
|
$valueElement->addAttribute('type', 'webmonetization');
|
||||||
$podcast->payment_pointer,
|
$valueElement->addAttribute('method', '');
|
||||||
|
$valueElement->addAttribute('suggested', '');
|
||||||
|
$recipientElement = $valueElement->addChild(
|
||||||
|
'valueRecipient',
|
||||||
|
null,
|
||||||
$podcast_namespace
|
$podcast_namespace
|
||||||
);
|
);
|
||||||
|
$recipientElement->addAttribute('name', $podcast->owner_name);
|
||||||
|
$recipientElement->addAttribute('type', 'ILP');
|
||||||
|
$recipientElement->addAttribute('address', $podcast->payment_pointer);
|
||||||
|
$recipientElement->addAttribute('split', 100);
|
||||||
}
|
}
|
||||||
$channel
|
$channel
|
||||||
->addChild(
|
->addChild(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue