mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Support <podcast:txt purpose="p20url"> element
This commit is contained in:
parent
888273a1d7
commit
cb91056514
10 changed files with 212 additions and 103 deletions
|
@ -10,10 +10,14 @@ export function getDefaultRSSFeeds (url: string, instanceName: string) {
|
|||
]
|
||||
}
|
||||
|
||||
export function getChannelPodcastFeed (url: string, channel: { id: number }) {
|
||||
return `${url}/feeds/podcast/videos.xml?videoChannelId=${channel.id}`
|
||||
}
|
||||
|
||||
export function getChannelRSSFeeds (url: string, instanceName: string, channel: { name: string, id: number }) {
|
||||
return [
|
||||
{
|
||||
url: `${url}/feeds/podcast/videos.xml?videoChannelId=${channel.id}`,
|
||||
url: getChannelPodcastFeed(url, channel),
|
||||
// TODO: translate
|
||||
title: `${channel.name} podcast feed`
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue