Dispatcharr/apps/timeshift/api_urls.py
SergeantPanda 6f62d807f4 feat(timeshift): add position reporting for catch-up sessions
- Introduced a new endpoint `POST /api/catchup/sessions/<session_id>/position/` for native clients to report their playhead position and pause state during catch-up sessions.
- Updated the catch-up session handling to include a `paused` flag, allowing accurate tracking of playback state without seeking the provider stream.
- Enhanced the Redis storage mechanism to accommodate the new position and pause data, ensuring real-time updates for admin stats.
- Added tests to validate the new position reporting functionality and its integration with existing catch-up features.
2026-07-16 22:06:27 +00:00

23 lines
546 B
Python

from django.urls import path
from . import api_views
app_name = "catchup"
urlpatterns = [
path(
"sessions/",
api_views.CatchupSessionCreateAPIView.as_view(),
name="catchup-session-create",
),
path(
"sessions/<str:session_id>/position/",
api_views.CatchupSessionPositionAPIView.as_view(),
name="catchup-session-position",
),
path(
"sessions/<str:session_id>/",
api_views.CatchupSessionDestroyAPIView.as_view(),
name="catchup-session-destroy",
),
]