mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
cosmetics
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user