mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Pre-Alpha v4
Added settings page Added EPG functionality
This commit is contained in:
parent
3a15cf6b7f
commit
d89bf35c0d
17 changed files with 1081 additions and 212 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue