mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add replace & -> & in add link
This commit is contained in:
@@ -2,6 +2,7 @@ package api
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"server/log"
|
||||
"server/torr"
|
||||
@@ -62,6 +63,7 @@ func addTorrent(req torrReqJS, c *gin.Context) {
|
||||
}
|
||||
|
||||
log.TLogln("add torrent", req.Link)
|
||||
req.Link = strings.ReplaceAll(req.Link, "&", "&")
|
||||
torrSpec, err := utils.ParseLink(req.Link)
|
||||
if err != nil {
|
||||
log.TLogln("error add torrent:", err)
|
||||
|
||||
Reference in New Issue
Block a user