Parcourir la source

Make way for more manual scrobbling options ...

Next stop, sports games!
Colin Powell il y a 2 ans
Parent
commit
9607fb2d1e
3 fichiers modifiés avec 10 ajouts et 6 suppressions
  1. 1 1
      vrobbler/apps/scrobbles/views.py
  2. 2 2
      vrobbler/templates/base.html
  3. 7 3
      vrobbler/urls.py

+ 1 - 1
vrobbler/apps/scrobbles/views.py

@@ -85,7 +85,7 @@ class RecentScrobbleList(ListView):
         ).order_by('-timestamp')[:15]
 
 
-class ManualScrobbleView(FormView):
+class ManualImdbScrobbleView(FormView):
     form_class = ScrobbleForm
     template_name = 'scrobbles/manual_form.html'
 

+ 2 - 2
vrobbler/templates/base.html

@@ -244,9 +244,9 @@
                             </li>
                             {% if user.is_authenticated %}
                             <li class="nav-item">
-                                <a class="nav-link" href="/manual/">
+                                <a class="nav-link" href="/manual/imdb/">
                                 <span data-feather="key"></span>
-                                Manual scrobble
+                                IMDB scrobble
                                 </a>
                             </li>
                             <li class="nav-item">

+ 7 - 3
vrobbler/urls.py

@@ -3,7 +3,7 @@ from django.conf.urls.static import static
 from django.contrib import admin
 from django.urls import include, path
 from rest_framework import routers
-from scrobbles.views import RecentScrobbleList, ManualScrobbleView
+import scrobbles.views as scrobbles_views
 from videos import urls as video_urls
 
 from scrobbles import urls as scrobble_urls
@@ -15,9 +15,13 @@ urlpatterns = [
     # path("movies/", include(movies, namespace="movies")),
     # path("shows/", include(shows, namespace="shows")),
     path("api/v1/scrobbles/", include(scrobble_urls, namespace="scrobbles")),
-    path('manual/', ManualScrobbleView.as_view(), name='manual-scrobble'),
+    path(
+        'manual/imdb/',
+        scrobbles_views.ManualImdbScrobbleView.as_view(),
+        name='manual-scrobble',
+    ),
     path("", include(video_urls, namespace="videos")),
-    path("", RecentScrobbleList.as_view(), name="home"),
+    path("", scrobbles_views.RecentScrobbleList.as_view(), name="home"),
 ]
 
 if settings.DEBUG: