mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix double ext m3u
This commit is contained in:
@@ -124,7 +124,7 @@ func stream(c *gin.Context) {
|
|||||||
name := strings.ReplaceAll(c.Param("fname"), `/`, "") // strip starting / from param
|
name := strings.ReplaceAll(c.Param("fname"), `/`, "") // strip starting / from param
|
||||||
if name == "" {
|
if name == "" {
|
||||||
name = tor.Name() + ".m3u"
|
name = tor.Name() + ".m3u"
|
||||||
} else {
|
} else if !strings.HasSuffix(strings.ToLower(name), ".m3u") {
|
||||||
name += ".m3u"
|
name += ".m3u"
|
||||||
}
|
}
|
||||||
m3ulist := "#EXTM3U\n" + getM3uList(tor.Status(), utils2.GetScheme(c)+"://"+c.Request.Host, fromlast)
|
m3ulist := "#EXTM3U\n" + getM3uList(tor.Status(), utils2.GetScheme(c)+"://"+c.Request.Host, fromlast)
|
||||||
|
|||||||
Reference in New Issue
Block a user