try:
    from django.urls import re_path as url
except ImportError:
    from django.conf.urls import url

from podcasting.views import (
    ShowListView,
    ShowDetailView,
    EpisodeListView,
    EpisodeDetailView,
)


urlpatterns = [
    url(r"^$", ShowListView.as_view(), name="podcasting_show_list"),
    url(
        r"^(?P<slug>[-\w]+)/$", ShowDetailView.as_view(), name="podcasting_show_detail"
    ),
    url(
        r"^(?P<show_slug>[-\w]+)/archive/$",
        EpisodeListView.as_view(),
        name="podcasting_episode_list",
    ),
    url(
        r"^(?P<show_slug>[-\w]+)/(?P<slug>[-\w]+)/$",
        EpisodeDetailView.as_view(),
        name="podcasting_episode_detail",
    ),
]
