diff --git a/audio/models.py b/audio/models.py index efd25a5..5e8ab20 100644 --- a/audio/models.py +++ b/audio/models.py @@ -1,4 +1,5 @@ from django.db import models +from django.conf import settings from tp.models import UUIDAsIDModel from django.contrib.auth.models import User from django.utils.text import slugify @@ -75,6 +76,10 @@ class Feed(EpisodeAndFeed): default=1, ) + @property + def get_itpc_rss(self): + return(f'itpc://{settings.DOMAIN_NAME}/rss/{self.slug}.xml') + @property def license_name(self): return(get_license_info(self.license))[0] diff --git a/audio/templates/audio/feeds.html b/audio/templates/audio/feeds.html index 6da92eb..4f16b39 100644 --- a/audio/templates/audio/feeds.html +++ b/audio/templates/audio/feeds.html @@ -23,11 +23,22 @@
{{ i.created_on }}
license/attribution +