mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-24 03:05:13 +00:00
- Currently playing program title displayed with live broadcast indicator (green Radio icon) - Expandable program descriptions via chevron button - Efficient POST-based API endpoint (`/api/epg/current-programs/`) supporting batch channel queries or fetching all channels - Smart scheduling that fetches new program data 5 seconds after current program ends - Only polls when active channel list changes, not on stats refresh - Channel preview button: Added preview functionality to active stream cards on stats page
18 lines
726 B
Python
18 lines
726 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from .api_views import EPGSourceViewSet, ProgramViewSet, EPGGridAPIView, EPGImportAPIView, EPGDataViewSet, CurrentProgramsAPIView
|
|
|
|
app_name = 'epg'
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'sources', EPGSourceViewSet, basename='epg-source')
|
|
router.register(r'programs', ProgramViewSet, basename='program')
|
|
router.register(r'epgdata', EPGDataViewSet, basename='epgdata')
|
|
|
|
urlpatterns = [
|
|
path('grid/', EPGGridAPIView.as_view(), name='epg_grid'),
|
|
path('import/', EPGImportAPIView.as_view(), name='epg_import'),
|
|
path('current-programs/', CurrentProgramsAPIView.as_view(), name='current_programs'),
|
|
]
|
|
|
|
urlpatterns += router.urls
|