Page 1 of 2

[Plugin] CopyMagnetURI v0.2

Posted: Wed May 21, 2014 7:58 am
by runeks
This plugin adds a menu item to the right click menu for torrents, that allows you to copy the magnet URI for the torrent(s) in question.

Usage: Select one or more torrents, right click and select "Copy Magnet URI" and the URI(s) for the selected torrent(s) are in your clipboard.

EDIT: New version 0.2, which includes a bug fix by Popwax.

Re: [Plugin] CopyMagnetURI v0.1

Posted: Sat Aug 02, 2014 2:24 pm
by Tritonio
I can't seem to install this. Neither by cliking "install plugin" in the settings nor by dropping it into the plugins folder. In the latter case even when I click "rescan plugins" I can't even see it in the list. Deluge 1.3.7

Re: [Plugin] CopyMagnetURI v0.1

Posted: Sat Aug 02, 2014 3:08 pm
by runeks
Tritonio wrote:I can't seem to install this. Neither by cliking "install plugin" in the settings nor by dropping it into the plugins folder. In the latter case even when I click "rescan plugins" I can't even see it in the list. Deluge 1.3.7

Hi

What version of Python are you running?

Can you please try running Deluge from the command line, try to install the plugin, and post the output on the command line?

What OS are you running? Windows?

Re: [Plugin] CopyMagnetURI v0.1

Posted: Sun Aug 17, 2014 12:22 pm
by dem0z
Tritonio wrote:I can't seem to install this. Neither by cliking "install plugin" in the settings nor by dropping it into the plugins folder. In the latter case even when I click "rescan plugins" I can't even see it in the list. Deluge 1.3.7


same issue and am on windows 7

Re: [Plugin] CopyMagnetURI v0.1

Posted: Sun Aug 17, 2014 2:38 pm
by Cas

Re: [Plugin] CopyMagnetURI v0.1

Posted: Wed Aug 20, 2014 6:56 pm
by dem0z
thanks :D

Re: [Plugin] CopyMagnetURI v0.1

Posted: Mon Feb 16, 2015 5:16 am
by uvdevnull
Version 2.6 of the plugin downloaded, installed, and turned on. Option is showing in right-click menu but nothing is copied when clicked. Anything I can try in my Windows 7 SP1 x64 and Deluge 1.3.11?

Thanks,
uvdevnull

Re: [Plugin] CopyMagnetURI v0.1

Posted: Wed Mar 04, 2015 7:11 pm
by Popwax
You should encode 'name' field before using quote_plus() in gtkui.py, it's not always ASCII encoded and this plugin will crash and stop working if the torrent name contains unicode characters. some thing like

Code: Select all

uri = "magnet:?xt=urn:btih:{}&dn={}".format(hash, quote_plus(name.encode('utf8')))

Re: [Plugin] CopyMagnetURI v0.1

Posted: Wed May 20, 2015 7:58 am
by runeks
Popwax wrote:You should encode 'name' field before using quote_plus() in gtkui.py, it's not always ASCII encoded and this plugin will crash and stop working if the torrent name contains unicode characters.

Thanks for the tip! I have updated the plugin to version 0.2 with this change.

Re: [Plugin] CopyMagnetURI v0.2

Posted: Wed May 20, 2015 8:19 am
by anonymous_user
Hello,

I hope you can help me help you fix this bug that happens when I try
to use your plugin CopyMagnetURI-0.1-py2.7.egg.

System Setup:

OS: Ubuntu 14.04.2 LTS

Deluge:
Client: 1.3.11
Server: 1.3.11
libtorrent: 0.16.17.0

What I expected to happen: I would select a torrent, right click or
use the menu to click "Copy Magnet URI" and then be able to paste what
is in my clipboard and continue torrenting.

What happens: I would be able to select a torrent, right click or use
the menu to click "Copy Magnet URI", then my torrent client would hand
and I would have to force close it. The daemon does not crash or hang.
I can still paste my clipboard with the correct URI.

Please provide me any instructions to either fix this or help you
troubleshoot.