From 4b270d47aaa07a1873b9b6d3e9c0ae35ceb380c0 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Tue, 16 Mar 2021 09:27:43 +0300 Subject: [PATCH] fix subs file id --- server/web/api/m3u.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/web/api/m3u.go b/server/web/api/m3u.go index b108c54..add94a4 100644 --- a/server/web/api/m3u.go +++ b/server/web/api/m3u.go @@ -101,7 +101,7 @@ func getM3uList(tor *state.TorrentStatus, host string, fromLast bool) string { subs := findSubs(tor.FileStats, f) if subs != nil { sname := filepath.Base(subs.Path) - m3u += "#EXTVLCOPT:sub-file=" + host + "/stream/" + url.PathEscape(sname) + "?link=" + tor.Hash + "&index=" + fmt.Sprint(f.Id) + "&play\n" + m3u += "#EXTVLCOPT:sub-file=" + host + "/stream/" + url.PathEscape(sname) + "?link=" + tor.Hash + "&index=" + fmt.Sprint(subs.Id) + "&play\n" } name := filepath.Base(f.Path) m3u += host + "/stream/" + url.PathEscape(name) + "?link=" + tor.Hash + "&index=" + fmt.Sprint(f.Id) + "&play\n"