[Plugin] CopyMagnetURI v0.2

Suggest, post, or discuss plugins for Deluge
runeks
Member
Member
Posts: 13
Joined: Thu May 01, 2008 5:56 am

[Plugin] CopyMagnetURI v0.2

Post 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.
Attachments
CopyMagnetURI-0.2-py2.6.egg
For Windows users (Python 2.6)
(19.79 KiB) Downloaded 6847 times
CopyMagnetURI-0.2-py2.7.egg
For Python 2.7
(19.79 KiB) Downloaded 11383 times
Last edited by runeks on Wed May 20, 2015 8:03 am, edited 3 times in total.
Tritonio

Re: [Plugin] CopyMagnetURI v0.1

Post 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
runeks
Member
Member
Posts: 13
Joined: Thu May 01, 2008 5:56 am

Re: [Plugin] CopyMagnetURI v0.1

Post 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?
dem0z
New User
New User
Posts: 2
Joined: Sun Aug 17, 2014 12:19 pm

Re: [Plugin] CopyMagnetURI v0.1

Post 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
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [Plugin] CopyMagnetURI v0.1

Post by Cas »

dem0z
New User
New User
Posts: 2
Joined: Sun Aug 17, 2014 12:19 pm

Re: [Plugin] CopyMagnetURI v0.1

Post by dem0z »

thanks :D
uvdevnull
New User
New User
Posts: 2
Joined: Sun Feb 15, 2015 7:28 am

Re: [Plugin] CopyMagnetURI v0.1

Post 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
Popwax
New User
New User
Posts: 2
Joined: Wed Mar 04, 2015 7:06 pm

Re: [Plugin] CopyMagnetURI v0.1

Post 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')))
runeks
Member
Member
Posts: 13
Joined: Thu May 01, 2008 5:56 am

Re: [Plugin] CopyMagnetURI v0.1

Post 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.
anonymous_user
Member
Member
Posts: 40
Joined: Sat Jan 31, 2009 7:28 am

Re: [Plugin] CopyMagnetURI v0.2

Post 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.
http://www.bugmenot.com
Post Reply