This commit is contained in:
yourok
2019-01-15 16:55:42 +03:00
parent 7204a664d4
commit 9af0423188
4 changed files with 22 additions and 34 deletions

View File

@@ -28,18 +28,6 @@ func (args) Version() string {
var params args
func main() {
//test()
//return
//for _, g := range tmdb.GetMovieGenres("ru") {
// fmt.Println(g.Name, g.ID)
//}
//return
//movs, _ := tmdb.DiscoverShows(map[string]string{}, 1)
//js, _ := json.MarshalIndent(movs, "", " ")
//fmt.Println(string(js))
//return
arg.MustParse(&params)
if params.Path == "" {

View File

@@ -1,3 +1,3 @@
package version
const Version = "1.1.68"
const Version = "1.1.69"

View File

@@ -13,7 +13,7 @@ func MakeM3ULists(torrents []*settings.Torrent, host string) string {
m3u := "#EXTM3U\n"
for _, t := range torrents {
m3u += "#EXTINF:0," + t.Name + "\n"
m3u += "#EXTINF:0 type=\"playlist\", " + t.Name + "\n"
m3u += host + "/torrent/play?link=" + url.QueryEscape(t.Magnet) + "&m3u=true&fname=" + utils.CleanFName(t.Name+".m3u") + "\n\n"
}
return m3u
@@ -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," + f.Path + "\n"
m3u += "#EXTINF:-1 type=\"playlist\", " + f.Path + "\n"
mag := url.QueryEscape(magnet)
m3u += host + "/torrent/play?link=" + mag + "&file=" + fmt.Sprint(f.Id) + "\n\n"
}