Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Torrent Alive crashing #1434

@waynethomas69

Description

@waynethomas69

Torrent alive keeps crashing in what appears to be a very similar issue to #1117. Was working fine for quite a while with zero issues, but has suddenly started doing this (I'm guessing because of the particular torrent it has encountered). As a result no torrents are downloaded and the affected task has ground to a halt (others that don't use torrent alive are fine).

flexget version 2.3.39, python version 2.7.9

2016-10-05 20:40 DEBUG    torrent_alive search series   Checking for seeds for Greys.Anatomy.S10E01E02.720p.HDTV.X264-DIMENSION:
2016-10-05 20:40 DEBUG    torrent_alive search series   Checking for seeds from http://piratebg.com/scrape.php?pid=af38b3a5251647561a543d4a892d5e66&i$
2016-10-05 20:40 DEBUG    utils.requests search series   Fetching http://piratebg.com/scrape.php?pid=af38b3a5251647561a543d4a892d5e66&info_hash=%C0p%$
2016-10-05 20:40 CRITICAL task          search series   BUG: Unhandled error in plugin torrent_alive: 'generator' object is not an iterator
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 477, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/filter/torrent_alive.py", line 245, in on_task_output
    seeds = get_tracker_seeds(tracker, info_hash)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/filter/torrent_alive.py", line 162, in get_tracker_seeds
    return get_http_seeds(url, info_hash)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/filter/torrent_alive.py", line 138, in get_http_seeds
    data = bdecode(requests.get(url).content).get('files')
  File "/usr/local/lib/python2.7/dist-packages/flexget/utils/bittorrent.py", line 139, in bdecode
    data = decode_item(functools.partial(next, src), next(src))  # pylint:disable=E1101
  File "/usr/local/lib/python2.7/dist-packages/future/builtins/newnext.py", line 62, in newnext
    iterator.__class__.__name__))
TypeError: 'generator' object is not an iterator

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions