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() {
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user