X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/133902ac65400d9a129d0cba3db3392b925d54e6..6f51733275b7a709d519adf2505dd0dc1b886466:/src/archive/urls.py?ds=inline diff --git a/src/archive/urls.py b/src/archive/urls.py index 4743227..b057df4 100644 --- a/src/archive/urls.py +++ b/src/archive/urls.py @@ -1,23 +1,23 @@ -from django.conf.urls import url from django.urls import path from django.views.generic import RedirectView from . import views urlpatterns = [ path("", views.AudiobookList.as_view(), name="list_managed"), - url(r'^new/$', views.list_new, name="list_new"), - url(r'^new/(.+)/$', views.file_new, name="file_new"), - url(r'^move_to_archive/(.+)/$', views.move_to_archive, name="move_to_archive"), - url(r'^publishing/$', views.list_publishing, name="list_publishing"), + path('new/', views.list_new, name="list_new"), + path('new//', views.file_new, name="file_new"), + path('move_to_archive//', views.move_to_archive, name="move_to_archive"), + path('publishing/', views.list_publishing, name="list_publishing"), path('book//', views.BookView.as_view(), name="book"), - url(r'^file/(\d+)/$', views.file_managed, name="file"), - url(r'^publish/(\d+)/$', views.publish, name="publish"), - url(r'^convert/(\d+)/$', views.publish, {'publish': False}, name="convert"), - url(r'^download/(\d+)/$', views.download, name="download"), - url(r'^download/(\d+)\.(mp3|ogg|mkv)$', views.download, name="download"), - url(r'^cancel/(\d+)/$', views.cancel_publishing, name="cancel_publishing"), - url(r'^remove_to_archive/(\d+)/$', views.remove_to_archive, name="remove_to_archive"), - url(r'^unmanaged/$', views.list_unmanaged, name="list_unmanaged"), - url(r'^unmanaged/(.+)/$', views.file_unmanaged, name="file_unmanaged"), - url(r'^move_to_new/(.+)/$', views.move_to_new, name="move_to_new"), + path('book-youtube-volume//', views.book_youtube_volume, name="book_youtube_volume"), + path('file//', views.file_managed, name="file"), + path('publish//', views.publish, name="publish"), + path('convert//', views.publish, {'publish': False}, name="convert"), + path('download//', views.download, name="download"), + path('download/.', views.download, name="download"), + path('cancel//', views.cancel_publishing, name="cancel_publishing"), + path('remove_to_archive//', views.remove_to_archive, name="remove_to_archive"), + path('unmanaged/', views.list_unmanaged, name="list_unmanaged"), + path('unmanaged//', views.file_unmanaged, name="file_unmanaged"), + path('move_to_new//', views.move_to_new, name="move_to_new"), ]