1 from django.conf.urls import url
2 from django.urls import path
3 from django.views.generic import RedirectView
7 path("", views.AudiobookList.as_view(), name="list_managed"),
8 url(r'^new/$', views.list_new, name="list_new"),
9 url(r'^new/(.+)/$', views.file_new, name="file_new"),
10 url(r'^move_to_archive/(.+)/$', views.move_to_archive, name="move_to_archive"),
11 url(r'^publishing/$', views.list_publishing, name="list_publishing"),
12 path('book/<slug:slug>/', views.BookView.as_view(), name="book"),
13 path('book-youtube-volume/<int:aid>/', views.book_youtube_volume, name="book_youtube_volume"),
14 url(r'^file/(\d+)/$', views.file_managed, name="file"),
15 url(r'^publish/(\d+)/$', views.publish, name="publish"),
16 url(r'^convert/(\d+)/$', views.publish, {'publish': False}, name="convert"),
17 url(r'^download/(\d+)/$', views.download, name="download"),
18 url(r'^download/(\d+)\.(mp3|ogg|mkv)$', views.download, name="download"),
19 url(r'^cancel/(\d+)/$', views.cancel_publishing, name="cancel_publishing"),
20 url(r'^remove_to_archive/(\d+)/$', views.remove_to_archive, name="remove_to_archive"),
21 url(r'^unmanaged/$', views.list_unmanaged, name="list_unmanaged"),
22 url(r'^unmanaged/(.+)/$', views.file_unmanaged, name="file_unmanaged"),
23 url(r'^move_to_new/(.+)/$', views.move_to_new, name="move_to_new"),