Strip \n character from hash
Cette révision appartient à :
Parent
e987884416
révision
e6f53d4e09
1 fichiers modifiés avec 1 ajouts et 1 suppressions
|
@ -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),
|
||||
|
|
Référencer dans un nouveau ticket