From 9c5bf1e7ec1b1e42e384747058a01d87fadca73e Mon Sep 17 00:00:00 2001 From: deflax Date: Sat, 7 Sep 2024 18:47:24 +0000 Subject: [PATCH] fix various elements from the main template --- src/api/api.py | 2 +- src/api/templates/index.html | 58 ++++++++++++++++++------------------ 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/api/api.py b/src/api/api.py index 34b2640..5bcae6a 100644 --- a/src/api/api.py +++ b/src/api/api.py @@ -316,7 +316,7 @@ scheduler.start() # Frontend @app.route('/', methods=['GET']) def root_route(): - return render_template('index.html') + return render_template('index.html', now=datetime.utcnow()) # API @app.route('/about', methods=['GET']) diff --git a/src/api/templates/index.html b/src/api/templates/index.html index 5676f84..c37e1dd 100644 --- a/src/api/templates/index.html +++ b/src/api/templates/index.html @@ -64,7 +64,7 @@ document.addEventListener('DOMContentLoaded', () => { const video = document.querySelector("video"); const source = 'https://stream.deflax.net/memfs/f2844c7c-e86c-4f0a-afb6-a1b0e25a5071.m3u8'; - const playhead_url = "https://tv.deflax.net/playhead"; + const playhead_url = "https://api.deflax.net/playhead"; // For more options, see: https://github.com/sampotts/plyr/#options // captions.update is required for captions to work with hls.js @@ -210,27 +210,6 @@ document.addEventListener('DOMContentLoaded', () => { -
-
-
-
-
-
-
- - -
-
-
-
-
-
-
@@ -263,7 +242,7 @@ document.addEventListener('DOMContentLoaded', () => {

Video Archive

- +
@@ -272,26 +251,47 @@ document.addEventListener('DOMContentLoaded', () => {
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
-
-

Upstreams

+

Media

-

-

-

Backroom

+

Social

+

+

@@ -311,7 +311,7 @@ document.addEventListener('DOMContentLoaded', () => { _______________________________ /|o............................o| | |: .. flax network .. .. :| -| |: ... . ... 2024 .... :| +| |: ... . ... {{ now.year }} .... :| | |: ,-. _____ ,-. :| | |: ( `)) [_____] ( `)) :| |v|: `-` ' ' ' `-` :|