remove fname

This commit is contained in:
yourok
2020-03-07 21:16:22 +03:00
parent 4165fc5b6e
commit be98c9c8bb

View File

@@ -620,7 +620,7 @@ func getTorrentJS(tor *settings.Torrent) (*TorrentJsonResponse, error) {
js.AddTime = tor.Timestamp js.AddTime = tor.Timestamp
js.Length = tor.Size js.Length = tor.Size
//fname is fake param for file name //fname is fake param for file name
js.Playlist = "/torrent/play?link=" + url.QueryEscape(tor.Magnet) + "&m3u=true&fname=" + utils.CleanFName(tor.Name+".m3u") js.Playlist = "/torrent/play?link=" + url.QueryEscape(tor.Magnet) + "&m3u=true"
var size int64 = 0 var size int64 = 0
for _, f := range tor.Files { for _, f := range tor.Files {
size += f.Size size += f.Size