stefantalpalaru / deluge-default-trackers

Deluge plugin for adding default trackers to all the new torrents
GNU General Public License v3.0
141 stars 23 forks source link

Plugin not working due to appending to a tuple (and simple solution) #10

Closed atkdef closed 8 years ago

atkdef commented 8 years ago

I got this error when I started the plugin.

[ERROR ] 00:30:23 eventmanager:59 Event handler TorrentAddedEvent failed in <b ound method Core.on_torrent_added of <defaulttrackers.core.Core object at 0x7fe6 b4278590>> with exception 'tuple' object has no attribute 'append'

Not sure if anyone else faces the same error. To fix this, the simple way is to change core.py Line 73: trackers = torrent.get_status(["trackers"])["trackers"] to trackers = list(torrent.get_status(["trackers"])["trackers"])

Hope this helps those who having the same problem.

stefantalpalaru commented 8 years ago

What version of Deluge were you running, with what version of Python and on what operating system?

haarp commented 8 years ago

I am getting the same bug on Debian 8, Python 2.7.9, Deluge 1.3.10.

stefantalpalaru commented 8 years ago

Please test the latest version of this plugin and let me know if it fixes your problem. I can't replicate it with Deluge 1.3.12.

haarp commented 8 years ago

Works now. Thanks! :)