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

Skip to content

CP fail on if movie['status'] == 'active': #1444

@mgaulton

Description

@mgaulton

Expected behaviour:

Couchpotato grabber should get list of pending moves and then download

Actual behaviour:

Crash occurs when parsing data returned from Couchpotato

Steps to reproduce:

  • Step 1: ...

Config:


  queue_movies_couchpotato:
    verify_ssl_certificates: no
    couchpotato_list:
      base_url: http://localhost
      port: 5050
      api_key: API
      include_data: yes
    accept_all: yes
    list_add:
      - movie_list: couchlist


  queue_movies_couchpotato2:
    inputs:
      - rss: http://thepiratebay.org/rss/new/201
      - rss: https://thepiratebay.org/rss/top100/201
      - rss: https://thepiratebay.org/rss/new/207
      - rss: https://thepiratebay.org/rss//top100/200
      - rss: https://api.nzbgeek.info/rss?t=-11&dl=1&seekid=144440&num=200&r=API
    quality:
      - "<720p"
    imdb_lookup: yes
    list_match:
      from:
        - movie_list: couchlist
    download: /home/torrentflux
    # template:
    #   - torrents-template

Log:

CP LOG
2016-10-12 10:47 VERBOSE  task_queue                    There are 1 tasks to execute. Shutdown will commence when they have completed.
2016-10-12 10:47 VERBOSE  couchpotato_list queue_movies_couchpotato Connecting to CouchPotato to retrieve movie list.
2016-10-12 10:47 VERBOSE  couchpotato_list queue_movies_couchpotato Connecting to CouchPotato to retrieve profile data.
2016-10-12 10:47 CRITICAL task          queue_movies_couchpotato BUG: Unhandled error in plugin couchpotato_list: u'status'
2016-10-12 10:47 CRITICAL manager       queue_movies_couchpotato An unexpected crash has occurred. Writing crash report to /root/crash_report.2016.10.12.104721788205.log. Please verify you are running the la
test version of flexget by using "flexget -V" from CLI or by using version_checker plugin at http://flexget.com/wiki/Plugins/version_checker. You are currently using version 2.3.42
2016-10-12 10:47 WARNING  task          queue_movies_couchpotato Aborting task (plugin: couchpotato_list)



CP crash

2016-10-12 10:46 DEBUG    manager                       Figuring out config load paths
2016-10-12 10:46 DEBUG    manager                       Found config: /root/config.yml
2016-10-12 10:46 DEBUG    manager                       Config file /root/config.yml selected
2016-10-12 10:47 VERBOSE  task_queue                    There are 1 tasks to execute. Shutdown will commence when they have completed.
2016-10-12 10:47 VERBOSE  couchpotato_list queue_movies_couchpotato Connecting to CouchPotato to retrieve movie list.
2016-10-12 10:47 VERBOSE  couchpotato_list queue_movies_couchpotato Connecting to CouchPotato to retrieve profile data.
2016-10-12 10:47 CRITICAL task          queue_movies_couchpotato BUG: Unhandled error in plugin couchpotato_list: u'status'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flexget/task.py", line 477, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/flexget/plugins/list/couchpotato_list.py", line 242, in on_task_input
    return list(CouchPotatoSet(config))
  File "/usr/lib/python2.7/site-packages/flexget/plugins/list/couchpotato_list.py", line 195, in __iter__
    return (entry for entry in self.movies)
  File "/usr/lib/python2.7/site-packages/flexget/plugins/list/couchpotato_list.py", line 180, in movies
    self._movies = CouchPotatoBase.list_entries(self.config)
  File "/usr/lib/python2.7/site-packages/flexget/plugins/list/couchpotato_list.py", line 115, in list_entries
    if movie['status'] == 'active':
KeyError: u'status'

Additional information:

  • Flexget Version:2.3.43
  • Python Version: Python 2.7.12
  • Installation method: pip
  • OS and version: Opensuse Leap 42.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions