From 5cec2a056605e7225eede26f5fa3131930c7579e Mon Sep 17 00:00:00 2001 From: kirari04 Date: Wed, 17 Jan 2024 19:10:53 +0100 Subject: [PATCH] added new old example player --- controllers/PlayerController.go | 3 + views/player.old.html | 674 ++------------------------------ 2 files changed, 32 insertions(+), 645 deletions(-) diff --git a/controllers/PlayerController.go b/controllers/PlayerController.go index dbf1a21..b681bc2 100755 --- a/controllers/PlayerController.go +++ b/controllers/PlayerController.go @@ -81,6 +81,7 @@ func PlayerController(c *fiber.Ctx) error { // List audios var jsonAudios []map[string]string + var firstAudio string for _, audioItem := range dbLink.File.Audios { if audioItem.Ready { jsonAudios = append(jsonAudios, map[string]string{ @@ -90,6 +91,7 @@ func PlayerController(c *fiber.Ctx) error { "lang": audioItem.Lang, "file": audioItem.OutputFile, }) + firstAudio = audioItem.UUID } } rawAudios, _ := json.Marshal(jsonAudios) @@ -140,6 +142,7 @@ func PlayerController(c *fiber.Ctx) error { "Qualitys": string(rawQuality), "Subtitles": string(rawSubtitles), "Audios": string(rawAudios), + "AudioUUID": firstAudio, "Webhooks": string(rawWebhooks), "StreamIsReady": streamIsReady, "UUID": requestValidation.UUID, diff --git a/views/player.old.html b/views/player.old.html index 00fd8b6..228a784 100755 --- a/views/player.old.html +++ b/views/player.old.html @@ -1,648 +1,32 @@ - - - - - - - - - - - - - - - {{ .Title }} - - - - - - - - - - - -
-
-
-
- -
- - - - - - - - + + + + + + + + + + + + + + + {{ .Title }} + + + + + + + + + + + + + \ No newline at end of file