remove double unescape

This commit is contained in:
YouROK
2020-05-27 11:03:02 +03:00
parent 3dd7c4d49a
commit 51f919d5e9

View File

@@ -487,13 +487,6 @@ func torrentPlay(c echo.Context) error {
}
magnet, infoBytes, err := helpers.GetMagnet(link)
if err != nil {
link, er := url.QueryUnescape(link)
if er == nil {
magnet, infoBytes, err = helpers.GetMagnet(link)
}
}
if err != nil {
fmt.Println("Error get magnet:", link, err)
return echo.NewHTTPError(http.StatusBadRequest, err.Error())