mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
optimize
This commit is contained in:
@@ -15,7 +15,8 @@ import (
|
|||||||
|
|
||||||
func (bt *BTServer) View(torr *Torrent, file *torrent.File, c echo.Context) error {
|
func (bt *BTServer) View(torr *Torrent, file *torrent.File, c echo.Context) error {
|
||||||
go settings.SetViewed(torr.Hash().HexString(), file.Path())
|
go settings.SetViewed(torr.Hash().HexString(), file.Path())
|
||||||
reader := torr.NewReader(file, 0)
|
reader := NewReader(file, bt.GetCache(torr.hash))
|
||||||
|
//reader := torr.NewReader(file, 0)
|
||||||
|
|
||||||
fmt.Println("Connect reader:", len(torr.readers))
|
fmt.Println("Connect reader:", len(torr.readers))
|
||||||
c.Response().Header().Set("Connection", "close")
|
c.Response().Header().Set("Connection", "close")
|
||||||
|
|||||||
Reference in New Issue
Block a user