torrent-control icon indicating copy to clipboard operation
torrent-control copied to clipboard

Cannot handle long magnet links

Open Qazy147 opened this issue 1 year ago • 6 comments

If magnet link is longer than 1024 characters, it shows error "JSON.parser: unexpected character at line 2 column 1 of the JSON data".

Qazy147 avatar May 07 '23 13:05 Qazy147

Which torrent client are you using? There's no handling on extensions side and the error indicates that it's a problem in torrent client (or possible reverse proxy before it).

Mika- avatar Jun 13 '23 17:06 Mika-

It is µTorrent. So if it is not extension problem, is it possible to add option to truncate magnet link? Just cut off last few "&" parts?

I am currently truncating it manually and than pasting it into address bar For example: magnet:?...&...&...&...&...&... into magnet:?...&...&...&...

Qazy147 avatar Jun 13 '23 18:06 Qazy147

It depends what is in those parts. Most likely those are tracker urls and some can be dropped. Even thought it could prevent connecting some peers, making torrent slower or completely unavailable depending it's health.

Mika- avatar Jun 14 '23 07:06 Mika-

In my opinion, slow is still better than none.

Qazy147 avatar Jun 14 '23 08:06 Qazy147

I get the same problem When trying to click link on this torrent https://tpb.party/torrent/70636448/TuneIn_Radio_Pro_-_Live_Radio_v32.0.2_Paid_Apk I get the same "JSON.parser: unexpected character at line 2 column 1 of the JSON data" error Have tried various Bit Torrent Clients (Mainly use utorrent) but get the same error If I cut & paste the torrent link directly into Client it works fine Can You please help and find a solution Thanks

Anorak-Stan avatar Aug 10 '23 23:08 Anorak-Stan

Couldn't test that with the latest utorrent as it's so full of spyware that windows prevents installing it. But atleast with version 2.2.1 it worked fine.

Mika- avatar Aug 27 '23 11:08 Mika-