1
0
Fork 0
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:
Chocobozzz 2025-03-04 13:49:01 +01:00
parent 888273a1d7
commit cb91056514
No known key found for this signature in database
GPG key ID: 583A612D890159BE
10 changed files with 212 additions and 103 deletions

View file

@ -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`
},