Make way for more manual scrobbling options ...
Next stop, sports games!
This commit is contained in:
@ -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'
|
||||
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user