mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
fix bug with load path
This commit is contained in:
@@ -100,7 +100,7 @@ func updateDB() {
|
||||
|
||||
func loadDB() {
|
||||
log.TLogln("Load rutor db")
|
||||
buf, err := os.ReadFile("rutor.ls")
|
||||
buf, err := os.ReadFile(filepath.Join(settings.Path, "rutor.ls"))
|
||||
if err == nil {
|
||||
r := flate.NewReader(bytes.NewReader(buf))
|
||||
buf, err = io.ReadAll(r)
|
||||
@@ -114,6 +114,8 @@ func loadDB() {
|
||||
torrsearch.NewIndex(torrs)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log.TLogln("Error load rutor db:", err)
|
||||
}
|
||||
utils2.FreeOSMemGC()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user