Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Strip \n character from hash

Cette révision appartient à :
Eliot Whalan 2017-05-04 20:22:13 +10:00
Parent e987884416
révision e6f53d4e09

Voir le fichier

@ -128,7 +128,7 @@ func getAllCategories(populatedWithTorrents bool) []Categories {
}
func (t *Torrents) toJson() TorrentsJson {
magnet := "magnet:?xt=urn:btih:" + html.UnescapeString(t.Hash) + "&dn=" + t.Name + trackers
magnet := "magnet:?xt=urn:btih:" + strings.Replace(t.hash, "\n", "", -1) + "&dn=" + t.Name + trackers
res := TorrentsJson{
Id: strconv.Itoa(t.Id),
Name: html.UnescapeString(t.Name),