mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-20 14:06:09 +05:00
Merge pull request #516 from qarkai/m3u-tvg-logo
Use poster as logo in all.m3u
This commit is contained in:
@@ -40,7 +40,11 @@ func allPlayList(c *gin.Context) {
|
|||||||
hash := ""
|
hash := ""
|
||||||
// fn=file.m3u fix forkplayer bug with end .m3u in link
|
// fn=file.m3u fix forkplayer bug with end .m3u in link
|
||||||
for _, tr := range torrs {
|
for _, tr := range torrs {
|
||||||
list += "#EXTINF:0 type=\"playlist\"," + tr.Title + "\n"
|
list += "#EXTINF:0"
|
||||||
|
if tr.Poster != "" {
|
||||||
|
list += " tvg-logo=\"" + tr.Poster + "\""
|
||||||
|
}
|
||||||
|
list += " type=\"playlist\"," + tr.Title + "\n"
|
||||||
list += host + "/stream/" + url.PathEscape(tr.Title) + ".m3u?link=" + tr.TorrentSpec.InfoHash.HexString() + "&m3u&fn=file.m3u\n"
|
list += host + "/stream/" + url.PathEscape(tr.Title) + ".m3u?link=" + tr.TorrentSpec.InfoHash.HexString() + "&m3u&fn=file.m3u\n"
|
||||||
hash += tr.Hash().HexString()
|
hash += tr.Hash().HexString()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user