urls.py 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. from django.urls import path
  2. from . import views
  3. urlpatterns = [
  4. # STUFF RELATED TO WHOLE SITE
  5. path('home/', views.home, name='home'),
  6. path('favorites', views.favorites, name='favorites'),
  7. path('planned-to-watch', views.planned_to_watch, name='planned_to_watch'),
  8. path('library/<slug:library_type>', views.library, name='library'),
  9. # STUFF RELATED TO INDIVIDUAL VIDEOS
  10. path('video/<slug:video_id>', views.view_video, name='video'),
  11. path('video/<slug:video_id>/mark/favorite', views.mark_video_favortie, name='mark_video_favorite'),
  12. path(
  13. 'video/<slug:video_id>/mark/planned-to-watch',
  14. views.mark_video_planned_to_watch,
  15. name='mark_video_planned_to_watch'
  16. ),
  17. path('video/<slug:video_id>/notes', views.video_notes, name='video_notes'),
  18. path(
  19. 'video/<slug:video_id>/get-video-completion-times',
  20. views.video_completion_times,
  21. name='video_completion_times'
  22. ),
  23. path('video/<slug:video_id>/add-user-label', views.add_video_user_label, name='add_video_user_label'),
  24. # STUFF RELATED TO VIDEO(S) INSIDE PLAYLISTS
  25. # STUFF RELATED TO ONE PLAYLIST
  26. path('playlist/<slug:playlist_id>', views.view_playlist, name='playlist'),
  27. path('playlist/<slug:playlist_id>/add-user-label', views.add_playlist_user_label, name='add_playlist_user_label'),
  28. path(
  29. 'playlist/<slug:playlist_id>/<slug:video_id>/mark/watched',
  30. views.mark_video_watched,
  31. name='mark_video_watched'
  32. ),
  33. path('playlist/<slug:playlist_id>/settings', views.view_playlist_settings, name='view_playlist_settings'),
  34. path('playlist/<slug:playlist_id>/order-by/<slug:order_by>', views.order_playlist_by, name='order_playlist_by'),
  35. path('playlist/<slug:playlist_id>/mark-as/<slug:mark_as>', views.mark_playlist_as, name='mark_playlist_as'),
  36. path('playlist/<slug:playlist_id>/update/<slug:command>', views.update_playlist, name='update_playlist'),
  37. path(
  38. 'playlist/<slug:playlist_id>/update-settings', views.update_playlist_settings, name='update_playlist_settings'
  39. ),
  40. path(
  41. 'playlist/<slug:playlist_id>/<slug:order_by>/load-more-videos/<int:page>',
  42. views.load_more_videos,
  43. name='load_more_videos'
  44. ),
  45. path('playlist/<slug:playlist_id>/create-tag', views.create_playlist_tag, name='create_playlist_tag'),
  46. path('playlist/<slug:playlist_id>/add-tag', views.add_playlist_tag, name='add_playlist_tag'),
  47. path(
  48. 'playlist/<slug:playlist_id>/remove-tag/<str:tag_name>', views.remove_playlist_tag, name='remove_playlist_tag'
  49. ),
  50. path('playlist/<slug:playlist_id>/get-tags', views.get_playlist_tags, name='get_playlist_tags'),
  51. path(
  52. 'playlist/<slug:playlist_id>/get-unused-tags', views.get_unused_playlist_tags, name='get_unused_playlist_tags'
  53. ),
  54. path('playlist/<slug:playlist_id>/get-watch-message', views.get_watch_message, name='get_watch_message'),
  55. path(
  56. 'playlist/<slug:playlist_id>/delete-videos/<slug:command>', views.playlist_delete_videos, name='delete_videos'
  57. ),
  58. path(
  59. 'playlist/<slug:playlist_id>/delete-specific-videos/<slug:command>',
  60. views.delete_specific_videos,
  61. name='delete_specific_videos'
  62. ),
  63. path('playlist/<slug:playlist_id>/delete-playlist', views.delete_playlist, name='delete_playlist'),
  64. path('playlist/<slug:playlist_id>/reset-watched', views.reset_watched, name='reset_watched'),
  65. path(
  66. 'playlist/<slug:playlist_id>/move-copy-videos/<str:action>',
  67. views.playlist_move_copy_videos,
  68. name='playlist_move_copy_videos'
  69. ),
  70. path(
  71. 'playlist/<slug:playlist_id>/open-random-video',
  72. views.playlist_open_random_video,
  73. name='playlist_open_random_video'
  74. ),
  75. path(
  76. 'playlist/<slug:playlist_id>/get-playlist-completion-times',
  77. views.playlist_completion_times,
  78. name='playlist_completion_times'
  79. ),
  80. path('playlist/<slug:playlist_id>/add-new-videos', views.playlist_add_new_videos, name='playlist_add_new_videos'),
  81. path(
  82. 'playlist/<slug:playlist_id>/create-new-playlist',
  83. views.playlist_create_new_playlist,
  84. name='playlist_create_new_playlist'
  85. ),
  86. # STUFF RELATED TO PLAYLISTS IN BULK
  87. path(
  88. 'playlists/<slug:playlist_type>/order-by/<slug:order_by>', views.order_playlists_by, name='order_playlists_by'
  89. ),
  90. path('playlists/tag/<str:tag>', views.tagged_playlists, name='tagged_playlists'),
  91. path('playlists/tag/<str:tag>/edit', views.edit_tag, name='edit_tag'),
  92. path('playlists/tag/<str:tag>/delete', views.delete_tag, name='delete_tag'),
  93. ]