From 0b3ed7faaa38a7881df0ac6099d635f9c7d89e7b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 11 Aug 2024 15:49:50 +0200 Subject: [PATCH] Cleanup master.m3u8 paths --- transcoder/src/filestream.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transcoder/src/filestream.go b/transcoder/src/filestream.go index 3386053f..570d049f 100644 --- a/transcoder/src/filestream.go +++ b/transcoder/src/filestream.go @@ -86,7 +86,7 @@ func (fs *FileStream) GetMaster() string { master += "DEFAULT=YES," } master += "CHANNELS=\"2\"," - master += fmt.Sprintf("URI=\"./audio/%d/index.m3u8\"\n", audio.Index) + master += fmt.Sprintf("URI=\"audio/%d/index.m3u8\"\n", audio.Index) } master += "\n" @@ -131,7 +131,7 @@ func (fs *FileStream) GetMaster() string { if video == *def_video { master += "DEFAULT=YES\n" } else { - master += fmt.Sprintf("URI=\"./%d/%s/index.m3u8\"\n", video.Index, quality) + master += fmt.Sprintf("URI=\"%d/%s/index.m3u8\"\n", video.Index, quality) } } } @@ -149,7 +149,7 @@ func (fs *FileStream) GetMaster() string { } master += "AUDIO=\"audio\"," master += "CLOSED-CAPTIONS=NONE\n" - master += fmt.Sprintf("./%d/%s/index.m3u8\n", def_video.Index, Original) + master += fmt.Sprintf("%d/%s/index.m3u8\n", def_video.Index, Original) } aspectRatio := float32(def_video.Width) / float32(def_video.Height) @@ -167,7 +167,7 @@ func (fs *FileStream) GetMaster() string { master += fmt.Sprintf("CODECS=\"%s\",", strings.Join([]string{transmux_codec, audio_codec}, ",")) master += "AUDIO=\"audio\"," master += "CLOSED-CAPTIONS=NONE\n" - master += fmt.Sprintf("./%d/%s/index.m3u8\n", def_video.Index, quality) + master += fmt.Sprintf("%d/%s/index.m3u8\n", def_video.Index, quality) } }