diff --git a/server/go.sum b/server/go.sum index 872662a..cdb0ad8 100644 --- a/server/go.sum +++ b/server/go.sum @@ -87,8 +87,6 @@ github.com/anacrolix/sync v0.4.0/go.mod h1:BbecHL6jDSExojhNtgTFSBcdGerzNc64tz3DC github.com/anacrolix/tagflag v0.0.0-20180109131632-2146c8d41bf0/go.mod h1:1m2U/K6ZT+JZG0+bdMK6qauP49QT4wE5pmhJXOKKCHw= github.com/anacrolix/tagflag v1.0.0/go.mod h1:1m2U/K6ZT+JZG0+bdMK6qauP49QT4wE5pmhJXOKKCHw= github.com/anacrolix/tagflag v1.1.0/go.mod h1:Scxs9CV10NQatSmbyjqmqmeQNwGzlNe0CMUMIxqHIG8= -github.com/anacrolix/torrent v1.51.0 h1:094yxHhAmhilbzpxADDBro2AAz5X9NrjVqqe9/3cyq8= -github.com/anacrolix/torrent v1.51.0/go.mod h1:yCbMnw1IpltDstasqpZploAMnJrkXNjZFjo7XdDYUDY= github.com/anacrolix/torrent v1.51.1 h1:E48PcnNN3MFbqfFEinm+/E846ZNDVL0HKTY+XSsoEhM= github.com/anacrolix/torrent v1.51.1/go.mod h1:yCbMnw1IpltDstasqpZploAMnJrkXNjZFjo7XdDYUDY= github.com/anacrolix/upnp v0.1.3-0.20220123035249-922794e51c96 h1:QAVZ3pN/J4/UziniAhJR2OZ9Ox5kOY2053tBbbqUPYA= diff --git a/server/torr/stream.go b/server/torr/stream.go index 8817178..665b98f 100644 --- a/server/torr/stream.go +++ b/server/torr/stream.go @@ -59,7 +59,7 @@ func (t *Torrent) Stream(fileID int, req *http.Request, resp http.ResponseWriter } } - sets.SetViewed(&sets.Viewed{t.Hash().HexString(), fileID}) + sets.SetViewed(&sets.Viewed{Hash: t.Hash().HexString(), FileIndex: fileID}) resp.Header().Set("Connection", "close") etag := hex.EncodeToString([]byte(fmt.Sprintf("%s/%s", t.Hash().HexString(), file.Path()))) diff --git a/server/version/version.go b/server/version/version.go index 058854b..dc9f7f5 100644 --- a/server/version/version.go +++ b/server/version/version.go @@ -6,7 +6,7 @@ import ( // "github.com/anacrolix/torrent" ) -const Version = "MatriX.123.HP" +const Version = "MatriX.123.2" func GetTorrentVersion() string { // _ = torrent.NewDefaultClientConfig()