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