See #170: RSS feeds for channels

This commit is contained in:
Eliot Berriot 2020-01-30 17:28:52 +01:00
commit 9c22a72ed1
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
18 changed files with 923 additions and 6 deletions

View file

@ -47,6 +47,16 @@ def channel_detail(request, uuid):
}
)
metas.append(
{
"tag": "link",
"rel": "alternate",
"type": "application/rss+xml",
"href": obj.get_rss_url(),
"title": "{} - RSS Podcast Feed".format(obj.artist.name),
},
)
if obj.library.uploads.all().playable_by(None).exists():
metas.append(
{