Pre-Alpha v4

Added settings page
Added EPG functionality
This commit is contained in:
Dispatcharr 2025-02-24 15:04:03 -06:00
parent 3a15cf6b7f
commit d89bf35c0d
17 changed files with 1081 additions and 212 deletions

View file

@ -6,6 +6,7 @@ import logging
from django.conf import settings
from django.http import StreamingHttpResponse, HttpResponseServerError
from django.db.models import F
from django.shortcuts import render
from apps.channels.models import Channel, Stream
from core.models import StreamProfile
@ -14,6 +15,13 @@ from core.models import StreamProfile
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logger = logging.getLogger(__name__)
def settings_view(request):
"""
Renders the settings page.
"""
return render(request, 'settings.html')
def stream_view(request, stream_id):
"""
Streams the first available stream for the given channel.