mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
- 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.
23 lines
546 B
Python
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",
|
|
),
|
|
]
|