mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix OE torrent version
This commit is contained in:
@@ -16,8 +16,12 @@ func GetTorrentVersion() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
for _, dep := range bi.Deps {
|
for _, dep := range bi.Deps {
|
||||||
if dep.Path == "github.com/anacrolix/torrent" || dep.Path == "github.com/tsynik/torrent" {
|
if dep.Path == "github.com/anacrolix/torrent" {
|
||||||
return dep.Version
|
if dep.Replace != nil {
|
||||||
|
return dep.Replace.Version
|
||||||
|
} else {
|
||||||
|
return dep.Version
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user