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