mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
remove double unescape
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user