cosmetics

This commit is contained in:
nikk gitanes
2023-04-09 05:32:45 +03:00
parent 2dfa2fe227
commit 07ca15cdfe

View File

@@ -70,8 +70,8 @@ func (t *Torrent) Preload(index int, size int64) {
}() }()
if ffprobe.Exists() { if ffprobe.Exists() {
host := "http://127.0.0.1:" + settings.Port + "/play/" + t.Hash().HexString() + "/" + strconv.Itoa(index) // + "&play" link := "http://127.0.0.1:" + settings.Port + "/play/" + t.Hash().HexString() + "/" + strconv.Itoa(index)
if data, err := ffprobe.ProbeUrl(host); err == nil { if data, err := ffprobe.ProbeUrl(link); err == nil {
t.BitRate = data.Format.BitRate t.BitRate = data.Format.BitRate
t.DurationSeconds = data.Format.DurationSeconds t.DurationSeconds = data.Format.DurationSeconds
} }