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