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 }}

Items

-

RSS

+

PodCast

license/attribution +
+
+
+

BeyondPod

+

RSS

+

Other ITPC

+

AntennaPod

+

Podcast Addict

+
+
+
Photo {{ i.image_title }} by {% if i.image_attribution_url == '' %} diff --git a/audio/templates/audio/index.html b/audio/templates/audio/index.html index ab202a5..bbf3c92 100644 --- a/audio/templates/audio/index.html +++ b/audio/templates/audio/index.html @@ -45,14 +45,27 @@

Link

{% if add_feed_link %}

Feed

+

Pod

+ {% else %} +

PodCast

{% endif %} -

RSS

license/attribution
+
+
+ +
+
Photo {{ j.image_title }} by {% if j.image_attribution_url == '' %} diff --git a/tp/settings.py b/tp/settings.py index 1c40403..1126674 100644 --- a/tp/settings.py +++ b/tp/settings.py @@ -156,3 +156,5 @@ EMAIL_PORT = int(os.getenv('EMAIL_PORT')) EMAIL_USE_TLS = os.getenv('EMAIL_USE_TLS') == "True" EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER') EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD') + +DOMAIN_NAME = os.getenv('DOMAIN_NAME')