fix bug with playlist

This commit is contained in:
yourok
2020-01-16 21:08:35 +03:00
parent 0f0bcd20cc
commit 50112e8f47

View File

@@ -24,7 +24,7 @@ func MakeM3UPlayList(tor torr.TorrentStats, magnet string, host string) string {
for _, f := range tor.FileStats {
if GetMimeType(f.Path) != "*/*" {
m3u += "#EXTINF:-1 type=\"playlist\", " + f.Path + "\n"
m3u += "#EXTINF:-1, " + f.Path + "\n"
mag := url.QueryEscape(magnet)
m3u += host + "/torrent/play?link=" + mag + "&file=" + fmt.Sprint(f.Id) + "\n\n"
}