Skip to content

[fix] couchpotato_list minor fix in debug logging#1803

Merged
liiight merged 1 commit intoFlexget:developfrom
qk4l:develop
Apr 22, 2017
Merged

[fix] couchpotato_list minor fix in debug logging#1803
liiight merged 1 commit intoFlexget:developfrom
qk4l:develop

Conversation

@qk4l
Copy link
Copy Markdown
Contributor

@qk4l qk4l commented Apr 22, 2017

Motivation for changes:

Error after successful adding movie to couchpotato list

Detailed changes:

CouchPotatoBase.add_movie returns json with no movies key. We should get film name directly from info dict (source).

Log

2017-04-22 15:48 VERBOSE  couchpotato_list TrakttoCP       Connection to CouchPotato to add a movie to list.
2017-04-22 15:48 CRITICAL task          TrakttoCP       BUG: Unhandled error in plugin list_add: u'movie'
Traceback (most recent call last):
  File "/home/qk4l/progs/flexget/local/lib/python2.7/site-packages/flexget/task.py", line 483, in __run_plugin
    return method(*args, **kwargs)
  File "/home/qk4l/progs/flexget/local/lib/python2.7/site-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/home/qk4l/progs/flexget/local/lib/python2.7/site-packages/flexget/plugins/output/list_add.py", line 54, in on_task_output
    thelist |= task.accepted
  File "/home/qk4l/progs/flexget/lib/python2.7/_abcoll.py", line 311, in __ior__
    self.add(value)
  File "/home/qk4l/progs/flexget/local/lib/python2.7/site-packages/flexget/plugins/list/couchpotato_list.py", line 211, in add
    log.verbose('Successfully added movie %s to CouchPotato', movie['movie']['info']['original_title'])
KeyError: u'movie'

@liiight liiight merged commit 34990c5 into Flexget:develop Apr 22, 2017
@liiight
Copy link
Copy Markdown
Member

liiight commented Apr 22, 2017

Thanks. Nice to see people actually use this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants