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

Magnet links are not intercepted

Open moppman opened this issue 4 years ago • 5 comments

Describe the bug Instead of adding a magnet link to the configured client, clicking a magnet link prompts the xdg-open chrome popup. Adding torrent files works as expected. To Reproduce Steps to reproduce the behavior:

  1. Go to https://webtorrent.io/free-torrents
  2. Click on a magnet link
  3. See xdg-open popup

Expected behavior Add magnet link to client Desktop (please complete the following information):

  • Chrome Version 86.0.4240.75 (Official Build) (64-bit)
  • Debian 10

Remote torrent client

  • Client rutorrent

edit: Adding magnet links via right-click is working fine.

moppman avatar Oct 07 '20 10:10 moppman

Hello and thanks for sending in the issue!

Do you get any error message in the background page of the extension? (More Tools -> Extensions | Details -> background page)

If not, have you tried right-clicking -> Add torrent?

I suspect this is a deliberate design limitation of Chrome (Since I can't choose which application should be allowed to handle file/link like you can in Firefox) since it defaults to which ever application your OS: https://askubuntu.com/questions/303033/changing-the-torrent-programm-for-magnet-url

I'll try and look out for any solution that would make this functionality work, but at the moment the only workaround is to right-click the link -> Add Torrent.

piperun avatar Oct 08 '20 21:10 piperun

Thanks for getting back to me so quickly!

Do you get any error message in the background page of the extension?

None

If not, have you tried right-clicking -> Add torrent?

I should have explicitely mentioned that: adding a magnet link via right-click is working fine.

I'll try and look out for any solution that would make this functionality work,

I just stumbled across another extension (I like yours better, though :smiley: ) and quickly tested adding magnet links, seems to work there.

moppman avatar Oct 09 '20 07:10 moppman

Thank you very much :)

I see, I'll have to look into their solution.

piperun avatar Oct 09 '20 10:10 piperun

I have the same problem.

bfcns avatar Dec 04 '21 00:12 bfcns

I also have the same problem. At the same time, I noticed that some extensions can be left-clicked to directly add magnetic link, such as Download Manager (for Synology) , There should be a way to bypass chrome restrictions.

allblue avatar Dec 17 '21 08:12 allblue