Mika- / torrent-control

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

Some torrent links are triggering Firefox download dialog instead #109

Closed spidey closed 3 years ago

spidey commented 3 years ago

I have Catch torrent URLs and Magnet Links associated with Torrent Control on Firefox settings. Normal torrent association doesn't show Torrent Control as an option, but the Catch torrent URLs feature is making sure that they are routed to Torrent Control anyway. But I've found a website whose torrent links doesn't trigger Torrent Control, triggering the normal Firefox download dialog instead.

The URL format is https://<domain>/view/<numeric_id>/torrent, a pretty standard REST API. Is the problem that the URL catcher expects actual files, so anything ending with .torrent? Also, Torrent Control doesn't show up as an option, as an application that could handle the file (which is indeed a .torrent file as recognized by Firefox). Can I force it to open torrents like that?

spidey commented 3 years ago

I'm not sure if it's allowed to post links here, the one specifically is from a well known anime fansub website. If helpful I can definitely provide an example.

Mika- commented 3 years ago

This is mostly duplicate of #37 and #74. I have been waiting Mozilla to implement content handlers (bugzilla 1457500), which would allow Torrent control to act as default application for torrent files. Unfortunately that functionality has been constantly postponed.

Current catching mechanism uses hard coded regexp list, which has worked fine for most of the users. My next development focus is most likely to make it user editable.