blob: 07e02ae2200a54d56b31b7a8d7b5abea9605bf81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from django.urls import include, re_path
from .feeds import RssShowFeed, AtomShowFeed, AtomRedirectView, RssRedirectView
from .models import MIME_CHOICES
MIMES = "|".join([enclosure[0] for enclosure in MIME_CHOICES])
urlpatterns = [
# Episode list feed by podcast (RSS 2.0 and iTunes)
re_path(r"^(?P<show_slug>[-\w]+)/(?P<mime_type>{mimes})/rss/$".format(mimes=MIMES),
RssShowFeed(), name="podcasts_show_feed_rss"),
# Episode list feed by show (Atom)
re_path(r"^(?P<show_slug>[-\w]+)/(?P<mime_type>{mimes})/atom/$".format(mimes=MIMES),
AtomShowFeed(), name="podcasts_show_feed_atom"),
]
|