migrate to old gotorrent

This commit is contained in:
YouROK
2021-02-19 15:54:37 +03:00
parent f68074bf94
commit b114e18033
8 changed files with 28 additions and 31 deletions

View File

@@ -55,7 +55,7 @@ func ParseLink(link string) (*torrent.TorrentSpec, error) {
}
func fromMagnet(link string) (*torrent.TorrentSpec, error) {
mag, err := metainfo.ParseMagnetUri(link)
mag, err := metainfo.ParseMagnetURI(link)
if err != nil {
return nil, err
}