Ticket #345 (closed defect: fixed)

  • Remember to check that the log messages do not contain personal information.
  • Tickets containing names or links to copyrighted material will be deleted. Clean them out!
  • For more permissions: register or login with flexget / anon
  • Format your config and logs with {{{ ... }}} wiki formatting

Opened 10 months ago

Last modified 8 months ago

RSS -> Deluge plugins and GZip (not a valid bencoded string)?

Reported by: d-Pixie@… Owned by: gazpachoking
Priority: minor Milestone: 1.0
Component: Plugins Version: 1.0 (bleeding edge)
Keywords: deluge, string Cc:

Description

I get this when pulling torrents via the RSS plugin to Deluge:

INFO     deluge      Using deluge 1.1 api
2009-10-29 14:57 INFO     deluge      Setting core uri as http://localclient:9e36182370b96bd095d78adac8d4b22e6dab7805@127.0.0.1:58846
2009-10-29 14:57 WARNING  deluge      Unable to open /home/pixie/.flexget/temp/c4ac93ce193cfb67febbbf2a0000e604: not a valid bencoded string
2009-10-29 14:57 ERROR    feed        Unhandled error in plugin deluge: not a valid bencoded string
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r879-py2.6.egg/flexget/feed.py", line 226, in __run_event
    method(self)
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r879-py2.6.egg/flexget/plugin.py", line 193, in __call__
    return getattr(self.plugin.instance, self.method_name)(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r879-py2.6.egg/flexget/plugins/output_deluge.py", line 88, in on_feed_output
    self.add_to_deluge11(feed, config)
  File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r879-py2.6.egg/flexget/plugins/output_deluge.py", line 120, in add_to_deluge11
    sclient.add_torrent_file([entry['file']], [opts])
  File "/usr/lib/pymodules/python2.6/deluge/ui/client.py", line 282, in add_torrent_file
    ti = deluge.ui.common.TorrentInfo(torrent_file)
  File "/usr/lib/pymodules/python2.6/deluge/ui/common.py", line 76, in __init__
    raise e
Exception: not a valid bencoded string
2009-10-29 14:57 INFO     feed        Aborting feed xxxxxxxxxxx (plugin: deluge)

I checked around a bit and found a few posts regarding this error and python. Most concluded that it was a GZip error. eg. the torrent file comes back encoded with GZip from the server and the handler (different in different cases) feeds it to Deluge still encoded which doesn't work since Deluge cant read it.

Can anyone confirm? Or have another idea? RSS pulled from torrentz.com in my case ...

Change History

Changed 10 months ago by gazpachoking

If I understand correctly this might be solved if this deluge  ticket gets implemented.

Changed 9 months ago by paranoidi

  • keywords deluge, string added; deluge rss "not a valid bencoded string" removed

Changed 9 months ago by gazpachoking

  • owner set to gazpachoking

Does it work if you use the download plugin and manually add the resulting torrents to deluge? If so, this is definitely a deluge bug, not a flexget one. Or perhaps it's your tracker returning an invalid torrent.

Changed 8 months ago by gazpachoking

  • component set to Plugins

Maybe the patch in #292 will fix this?

Changed 8 months ago by gazpachoking

  • priority changed from major to minor

Wait. RSS pulled from torrentz.com ? I hadn't really looked into this before, but the rss from torrentz.com doesn't point to torrent files, rather to web pages at torrentz.com I suspect that is the problem.

Changed 8 months ago by gazpachoking

  • status changed from new to closed
  • resolution set to fixed

(In [1043]) Implements gzip handling from #292 fixes #292 #345

Note: See TracTickets for help on using tickets.