From 07ca15cdfef7b1d2a7457c44a5c2cc6f2bf38cf0 Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Sun, 9 Apr 2023 05:32:45 +0300 Subject: [PATCH] cosmetics --- server/torr/preload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/torr/preload.go b/server/torr/preload.go index b942ce6..62f1c3c 100644 --- a/server/torr/preload.go +++ b/server/torr/preload.go @@ -70,8 +70,8 @@ func (t *Torrent) Preload(index int, size int64) { }() if ffprobe.Exists() { - host := "http://127.0.0.1:" + settings.Port + "/play/" + t.Hash().HexString() + "/" + strconv.Itoa(index) // + "&play" - if data, err := ffprobe.ProbeUrl(host); err == nil { + link := "http://127.0.0.1:" + settings.Port + "/play/" + t.Hash().HexString() + "/" + strconv.Itoa(index) + if data, err := ffprobe.ProbeUrl(link); err == nil { t.BitRate = data.Format.BitRate t.DurationSeconds = data.Format.DurationSeconds }