mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
Merge pull request #23 from tsynik/read-only-db
add read-only db work mode
This commit is contained in:
@@ -182,7 +182,7 @@ func torrentGet(c echo.Context) error {
|
||||
tor, err := settings.LoadTorrentDB(jreq.Hash)
|
||||
if err != nil {
|
||||
fmt.Println("Error get torrent:", jreq.Hash, err)
|
||||
return echo.NewHTTPError(http.StatusBadRequest, err.Error())
|
||||
// return echo.NewHTTPError(http.StatusBadRequest, err.Error()) // Handle R/O DB
|
||||
}
|
||||
|
||||
torrStatus := torr.TorrentAdded
|
||||
|
||||
Reference in New Issue
Block a user