mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
update
This commit is contained in:
@@ -24,7 +24,8 @@ func (t *Torrent) Stream(fileIndex int, req *http.Request, resp http.ResponseWri
|
|||||||
|
|
||||||
sets.SetViewed(&sets.Viewed{t.Hash().HexString(), fileIndex})
|
sets.SetViewed(&sets.Viewed{t.Hash().HexString(), fileIndex})
|
||||||
|
|
||||||
resp.Header().Set("Connection", "close")
|
//TODO проверить почему плеер постоянно переподключается
|
||||||
|
resp.Header().Set("Connection", "keep-alive")
|
||||||
resp.Header().Set("ETag", httptoo.EncodeQuotedString(fmt.Sprintf("%s/%s", t.Hash().HexString(), file.Path())))
|
resp.Header().Set("ETag", httptoo.EncodeQuotedString(fmt.Sprintf("%s/%s", t.Hash().HexString(), file.Path())))
|
||||||
|
|
||||||
http.ServeContent(resp, req, file.Path(), time.Time{}, reader)
|
http.ServeContent(resp, req, file.Path(), time.Time{}, reader)
|
||||||
|
|||||||
Reference in New Issue
Block a user