From 19efd9497977462cc4e2da5c6c3549ac79f2d506 Mon Sep 17 00:00:00 2001 From: tomleb Date: Sat, 6 May 2017 12:58:05 -0400 Subject: [PATCH] Fix search functionality, unzlib won't be needed in the future --- model/torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/torrent.go b/model/torrent.go index cf254ba1..8da04c24 100644 --- a/model/torrent.go +++ b/model/torrent.go @@ -75,7 +75,7 @@ type TorrentsJson struct { func (t *Torrents) ToJson() TorrentsJson { magnet := "magnet:?xt=urn:btih:" + strings.TrimSpace(t.Hash) + "&dn=" + t.Name + config.Trackers b := []CommentsJson{} - _ = json.Unmarshal([]byte(util.UnZlib(t.Comments)), &b) + _ = json.Unmarshal([]byte(t.Comments), &b) res := TorrentsJson{ Id: strconv.Itoa(t.Id), Name: html.UnescapeString(t.Name),