{"action":"created","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/965","repository_url":"https://api.github.com/repos/Flexget/Flexget","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/965/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/965/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/965/events","html_url":"https://github.com/Flexget/Flexget/issues/965","id":142308800,"number":965,"title":"Unhandled error in lazy lookup plugin","user":{"login":"effemmeffe","id":3448439,"avatar_url":"https://avatars.githubusercontent.com/u/3448439?v=3","gravatar_id":"","url":"https://api.github.com/users/effemmeffe","html_url":"https://github.com/effemmeffe","followers_url":"https://api.github.com/users/effemmeffe/followers","following_url":"https://api.github.com/users/effemmeffe/following{/other_user}","gists_url":"https://api.github.com/users/effemmeffe/gists{/gist_id}","starred_url":"https://api.github.com/users/effemmeffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effemmeffe/subscriptions","organizations_url":"https://api.github.com/users/effemmeffe/orgs","repos_url":"https://api.github.com/users/effemmeffe/repos","events_url":"https://api.github.com/users/effemmeffe/events{/privacy}","received_events_url":"https://api.github.com/users/effemmeffe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Flexget/Flexget/labels/Bug","name":"Bug","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"stevezau","id":6075483,"avatar_url":"https://avatars.githubusercontent.com/u/6075483?v=3","gravatar_id":"","url":"https://api.github.com/users/stevezau","html_url":"https://github.com/stevezau","followers_url":"https://api.github.com/users/stevezau/followers","following_url":"https://api.github.com/users/stevezau/following{/other_user}","gists_url":"https://api.github.com/users/stevezau/gists{/gist_id}","starred_url":"https://api.github.com/users/stevezau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevezau/subscriptions","organizations_url":"https://api.github.com/users/stevezau/orgs","repos_url":"https://api.github.com/users/stevezau/repos","events_url":"https://api.github.com/users/stevezau/events{/privacy}","received_events_url":"https://api.github.com/users/stevezau/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-21T10:29:26Z","updated_at":"2016-03-21T13:24:33Z","closed_at":null,"body":"```\r\n2016-03-21 08:34 ERROR    lazy_lookup   fetch-series    Unhandled error in lazy lookup plugin\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/flexget/utils/lazy_dict.py\", line 36, in __getitem__\r\n    func(self.store)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flexget/plugins/metainfo/thetvdb_lookup.py\", line 109, in lazy_series_lookup\r\n    return self.series_lookup(entry, self.series_map)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flexget/utils/database.py\", line 30, in wrapper\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/flexget/utils/sqlalchemy_utils.py\", line 137, in __exit__\r\n    self.commit()\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 801, in commit\r\n    self.transaction.commit()\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 392, in commit\r\n    self._prepare_impl()\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 372, in _prepare_impl\r\n    self.session.flush()\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 2019, in flush\r\n    self._flush(objects)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 2137, in _flush\r\n    transaction.rollback(_capture_exception=True)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py\", line 60, in __exit__\r\n    compat.reraise(exc_type, exc_value, exc_tb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 2101, in _flush\r\n    flush_context.execute()\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py\", line 373, in execute\r\n    rec.execute(self)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py\", line 532, in execute\r\n    uow\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py\", line 174, in save_obj\r\n    mapper, table, insert)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py\", line 800, in _emit_insert_statements\r\n    execute(statement, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 914, in execute\r\n    return meth(self, multiparams, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py\", line 323, in _execute_on_connection\r\n    return connection._execute_clauseelement(self, multiparams, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 1010, in _execute_clauseelement\r\n    compiled_sql, distilled_params\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 1146, in _execute_context\r\n    context)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 1341, in _handle_dbapi_exception\r\n    exc_info\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py\", line 200, in raise_from_cause\r\n    reraise(type(exception), exception, tb=exc_tb, cause=cause)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 1139, in _execute_context\r\n    context)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py\", line 450, in do_execute\r\n    cursor.execute(statement, parameters)\r\nIntegrityError: (pysqlite2.dbapi2.IntegrityError) UNIQUE constraint failed: tvdb_search_results.search [SQL: u'INSERT INTO tvdb_search_results (search, series_id) VALUES (?, ?)'] [parameters: (u'the big bang theory', 80379)]\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/comments/199275022","html_url":"https://github.com/Flexget/Flexget/issues/965#issuecomment-199275022","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/965","id":199275022,"user":{"login":"liiight","id":4374581,"avatar_url":"https://avatars.githubusercontent.com/u/4374581?v=3","gravatar_id":"","url":"https://api.github.com/users/liiight","html_url":"https://github.com/liiight","followers_url":"https://api.github.com/users/liiight/followers","following_url":"https://api.github.com/users/liiight/following{/other_user}","gists_url":"https://api.github.com/users/liiight/gists{/gist_id}","starred_url":"https://api.github.com/users/liiight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liiight/subscriptions","organizations_url":"https://api.github.com/users/liiight/orgs","repos_url":"https://api.github.com/users/liiight/repos","events_url":"https://api.github.com/users/liiight/events{/privacy}","received_events_url":"https://api.github.com/users/liiight/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T13:24:33Z","updated_at":"2016-03-21T13:24:33Z","body":"what version you on?"}}