mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix bug with playlist
This commit is contained in:
@@ -24,7 +24,7 @@ func MakeM3UPlayList(tor torr.TorrentStats, magnet string, host string) string {
|
|||||||
|
|
||||||
for _, f := range tor.FileStats {
|
for _, f := range tor.FileStats {
|
||||||
if GetMimeType(f.Path) != "*/*" {
|
if GetMimeType(f.Path) != "*/*" {
|
||||||
m3u += "#EXTINF:-1 type=\"playlist\", " + f.Path + "\n"
|
m3u += "#EXTINF:-1, " + f.Path + "\n"
|
||||||
mag := url.QueryEscape(magnet)
|
mag := url.QueryEscape(magnet)
|
||||||
m3u += host + "/torrent/play?link=" + mag + "&file=" + fmt.Sprint(f.Id) + "\n\n"
|
m3u += host + "/torrent/play?link=" + mag + "&file=" + fmt.Sprint(f.Id) + "\n\n"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user