{"action":"closed","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/698","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/698/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/698/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/698/events","html_url":"https://github.com/Flexget/Flexget/issues/698","id":121824714,"number":698,"title":"Tvmaze api crash on certain shows","user":{"login":"marcoacarvalho","id":171385,"avatar_url":"https://avatars.githubusercontent.com/u/171385?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoacarvalho","html_url":"https://github.com/marcoacarvalho","followers_url":"https://api.github.com/users/marcoacarvalho/followers","following_url":"https://api.github.com/users/marcoacarvalho/following{/other_user}","gists_url":"https://api.github.com/users/marcoacarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoacarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoacarvalho/subscriptions","organizations_url":"https://api.github.com/users/marcoacarvalho/orgs","repos_url":"https://api.github.com/users/marcoacarvalho/repos","events_url":"https://api.github.com/users/marcoacarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/marcoacarvalho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-12T01:46:28Z","updated_at":"2015-12-12T22:15:51Z","closed_at":"2015-12-12T22:15:51Z","body":"2015-12-11 22:35 DEBUG    est_released  search series   The Last Ship S03E01\r\n2015-12-11 22:35 DEBUG    est_movies    search series   Unable to check release for The Last Ship S03E01, tmdb_release field is not defined\r\n2015-12-11 22:35 DEBUG    est_series_tvmaze search series   Searching TVMaze for airdate of The Last Ship season 3 episode 1\r\n2015-12-11 22:35 DEBUG    est_series_tvmaze search series   series_episode: 1\r\n2015-12-11 22:35 DEBUG    est_series_tvmaze search series   show_name: The Last Ship\r\n2015-12-11 22:35 DEBUG    est_series_tvmaze search series   series_name: The Last Ship\r\n2015-12-11 22:35 DEBUG    est_series_tvmaze search series   series_season: 3\r\n2015-12-11 22:35 DEBUG    api_tvmaze    search series   searching db tvmaze_series for the values [(u'tvdb_id', None), (u'tvmaze_id', None), (u'name', u'The Last Ship'), (u'tvrage_id', None)]\r\n2015-12-11 22:35 DEBUG    api_tvmaze    search series   series The Last Ship is expired: False\r\n2015-12-11 22:35 DEBUG    api_tvmaze    search series   returning series The Last Ship from cache\r\n2015-12-11 22:35 DEBUG    api_tvmaze    search series   searching for episode of show The Last Ship in cache\r\n2015-12-11 22:35 DEBUG    api_tvmaze    search series   fetching episode 1 season 3 for series_id 21 for tvmaze\r\n2015-12-11 22:35 DEBUG    api_tvmaze    search series   creating new episode for show The Last Ship\r\n2015-12-11 22:35 CRITICAL task          search series   BUG: Unhandled error in plugin discover: 'NoneType' object has no attribute 'read'\r\n2015-12-11 22:35 CRITICAL manager       search series   An unexpected crash has occurred. Writing crash report to /home/marco/.flexget/crash_report.2015.12.11.223523795098.log\r\n2015-12-11 22:35 DEBUG    manager       search series   Traceback:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/flexget/task.py\", line 438, in __run_plugin\r\n    return method(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/event.py\", line 22, in __call__\r\n    return self.func(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/plugins/input/discover.py\", line 268, in on_task_input\r\n    entries = self.estimated(entries)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/plugins/input/discover.py\", line 190, in estimated\r\n    est_date = estimator.estimate(entry)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/plugins/estimators/est_released.py\", line 28, in estimate\r\n    estimate = estimator(entry)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/plugins/estimators/est_release_series_tvmaze.py\", line 52, in estimate\r\n    episode = lookup(**kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/utils/database.py\", line 30, in wrapper\r\n    return func(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/plugins/api_tvmaze.py\", line 397, in episode_lookup\r\n    episode = TVMazeEpisodes(pytvmaze_episode, series.tvmaze_id)\r\n  File \"<string>\", line 4, in __init__\r\n  File \"/usr/lib/python2.7/site-packages/sqlalchemy/orm/state.py\", line 306, in _initialize_instance\r\n    manager.dispatch.init_failure(self, args, kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py\", line 60, in __exit__\r\n    compat.reraise(exc_type, exc_value, exc_tb)\r\n  File \"/usr/lib/python2.7/site-packages/sqlalchemy/orm/state.py\", line 303, in _initialize_instance\r\n    return manager.original_init(*mixed[1:], **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/plugins/api_tvmaze.py\", line 159, in __init__\r\n    self.update(episode)\r\n  File \"/usr/lib/python2.7/site-packages/flexget/plugins/api_tvmaze.py\", line 176, in update\r\n    self.airstamp = parser.parse(episode.airstamp)\r\n  File \"/usr/lib/python2.7/site-packages/dateutil/parser.py\", line 1008, in parse\r\n    return DEFAULTPARSER.parse(timestr, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/dateutil/parser.py\", line 392, in parse\r\n    res = self._parse(timestr, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/dateutil/parser.py\", line 492, in _parse\r\n    l = _timelex.split(timestr)         # Splits the timestr into tokens\r\n  File \"/usr/lib/python2.7/site-packages/dateutil/parser.py\", line 174, in split\r\n    return list(cls(s))\r\n  File \"/usr/lib/python2.7/site-packages/dateutil/parser.py\", line 171, in next\r\n    return self.__next__()  # Python 2.x support\r\n  File \"/usr/lib/python2.7/site-packages/dateutil/parser.py\", line 164, in __next__\r\n    token = self.get_token()\r\n  File \"/usr/lib/python2.7/site-packages/dateutil/parser.py\", line 82, in get_token\r\n    nextchar = self.instream.read(1)\r\nAttributeError: 'NoneType' object has no attribute 'read'\r\n2015-12-11 22:35 WARNING  task          search series   Aborting task (plugin: discover)\r\n"}}