Mika- / torrent-control

Firefox extension for adding torrents to remote clients.
https://addons.mozilla.org/addon/torrent-control/
179 stars 25 forks source link

Failed to read torrent #161

Open simonbcn opened 11 months ago

simonbcn commented 11 months ago
Firefox 120.0.1
Torrent Control 0.2.36

I have defined a Custom URL... for a private tracker: /^https:\/\/www\.xxxxxx\.rent\/download\.php\/[a-zA-Z\d]+\/[a-zA-Z\d%]+$/ But torrent-control fails to add it: Failed to read torrent (Unknown type: text/html;charset=utf-8)

The request header is:

POST /download.php/5750cf41d13199212749ede83bb49cf5c355973d6bcf6cd8/Fellow%2520Travelers%2520S01%25201080p%2520x265%2520EN%2520Sub HTTP/2
Host: www.xxxxxxxx.rent
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 17
Origin: https://www.gaytor.rent
DNT: 1
Sec-GPC: 1
Connection: keep-alive
Referer: https://www.xxxxxxxxxxxxx.rent/details.php?id=5750cf41d13199212749ede83bb49cf5c355973d6bcf6cd8
Cookie: uid=xxxxxxxxx; pass=xxxxxx; token=xxxxxxxxx.xxxxxxxxxx.xxxx-xxxxxxxx; PHPSESSID=xxxxxxxxxxx
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
TE: trailers
simonbcn commented 11 months ago

However, with this extension that also captures URLs (only for Google Chrome) it works.: https://github.com/bogenpirat/remote-torrent-adder

Mika- commented 9 months ago

that site uses custom tracker software that generates torrents with post requests. This isn't currently implemented as request method is only known when left clicking links, so with current architecture it wouldn't work with any advanced features