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 ""
|
||||
}
|
||||
for _, dep := range bi.Deps {
|
||||
if dep.Path == "github.com/anacrolix/torrent" || dep.Path == "github.com/tsynik/torrent" {
|
||||
return dep.Version
|
||||
if dep.Path == "github.com/anacrolix/torrent" {
|
||||
if dep.Replace != nil {
|
||||
return dep.Replace.Version
|
||||
} else {
|
||||
return dep.Version
|
||||
}
|
||||
}
|
||||
}
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user