{"action":"created","issue":{"url":"https://api.github.com/repos/wackou/guessit/issues/225","labels_url":"https://api.github.com/repos/wackou/guessit/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/wackou/guessit/issues/225/comments","events_url":"https://api.github.com/repos/wackou/guessit/issues/225/events","html_url":"https://github.com/wackou/guessit/issues/225","id":103793074,"number":225,"title":"IndexError: string index out of range","user":{"login":"didyouexpectthat","id":1329077,"avatar_url":"https://avatars.githubusercontent.com/u/1329077?v=3","gravatar_id":"","url":"https://api.github.com/users/didyouexpectthat","html_url":"https://github.com/didyouexpectthat","followers_url":"https://api.github.com/users/didyouexpectthat/followers","following_url":"https://api.github.com/users/didyouexpectthat/following{/other_user}","gists_url":"https://api.github.com/users/didyouexpectthat/gists{/gist_id}","starred_url":"https://api.github.com/users/didyouexpectthat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didyouexpectthat/subscriptions","organizations_url":"https://api.github.com/users/didyouexpectthat/orgs","repos_url":"https://api.github.com/users/didyouexpectthat/repos","events_url":"https://api.github.com/users/didyouexpectthat/events{/privacy}","received_events_url":"https://api.github.com/users/didyouexpectthat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-28T20:47:10Z","updated_at":"2015-08-29T09:25:56Z","closed_at":null,"body":"I use guessit through SickRage.\r\nI am constantly getting errors in SickRage regarding:\r\n```\r\nFINDSUBTITLES :: Traceback (most recent call last):\r\n  File \"/usr/share/sickrage/sickbeard/tv.py\", line 1469, in downloadSubtitles\r\n    foundSubs = subliminal.download_best_subtitles([video], languages=languages, providers=providers, single=not sickbeard.SUBTITLES_MULTI, hearing_impaired=False)\r\n  File \"/usr/share/sickrage/lib/subliminal/api.py\", line 88, in download_best_subtitles\r\n    for subtitle, score in sorted([(s, s.compute_score(video)) for s in video_subtitles],\r\n  File \"/usr/share/sickrage/lib/subliminal/subtitle.py\", line 131, in compute_score\r\n    initial_matches = self.compute_matches(video)\r\n  File \"/usr/share/sickrage/lib/subliminal/providers/opensubtitles.py\", line 61, in compute_matches\r\n    matches |= compute_guess_matches(video, guessit.guess_episode_info(self.movie_release_name + '.mkv'))\r\n  File \"/usr/share/sickrage/lib/guessit/__init__.py\", line 370, in guess_episode_info\r\n    return guess_file_info(filename, info=info, options=options, type='episode', **kwargs)\r\n  File \"/usr/share/sickrage/lib/guessit/__init__.py\", line 302, in guess_file_info\r\n    result.append(_guess_filename(filename, options, **kwargs))\r\n  File \"/usr/share/sickrage/lib/guessit/__init__.py\", line 114, in _guess_filename\r\n    mtree = _build_filename_mtree(filename, options=options, **kwargs)\r\n  File \"/usr/share/sickrage/lib/guessit/__init__.py\", line 121, in _build_filename_mtree\r\n    mtree = IterativeMatcher(filename, options=options, **kwargs)\r\n  File \"/usr/share/sickrage/lib/guessit/matcher.py\", line 120, in __init__\r\n    self._process(transformer, False)\r\n  File \"/usr/share/sickrage/lib/guessit/matcher.py\", line 138, in _process\r\n    transformer.process(self.match_tree, self.options)\r\n  File \"/usr/share/sickrage/lib/guessit/transfo/guess_release_group.py\", line 219, in process\r\n    GuessFinder(self.guess_release_group, None, self.log, options).process_nodes(mtree.unidentified_leaves())\r\n  File \"/usr/share/sickrage/lib/guessit/matcher.py\", line 227, in process_nodes\r\n    self.process_node(node)\r\n  File \"/usr/share/sickrage/lib/guessit/matcher.py\", line 236, in process_node\r\n    matcher_result = self.guess_func(string, node, self.options)\r\n  File \"/usr/share/sickrage/lib/guessit/transfo/guess_release_group.py\", line 165, in guess_release_group\r\n    guess = self.container.as_guess(found, string, self.validate_group_name)\r\n  File \"/usr/share/sickrage/lib/guessit/containers.py\", line 639, in as_guess\r\n    if filter_(guess):\r\n  File \"/usr/share/sickrage/lib/guessit/transfo/guess_release_group.py\", line 96, in validate_group_name\r\n    if self.re_sep.match(val[0]):\r\nIndexError: string index out of range\r\n```\r\n```\r\n2015-08-28 10:16:59 ERROR FINDSUBTITLES :: Traceback (most recent call last):\r\n2015-08-28 10:16:59 INFO FINDSUBTITLES :: Error occurred when downloading subtitles for: /tv/The Mindy Project/s02e07.mkv\r\n2015-08-28 10:16:57 ERROR FINDSUBTITLES :: Traceback (most recent call last):\r\n2015-08-28 10:16:57 INFO FINDSUBTITLES :: Error occurred when downloading subtitles for: /tv/The Mindy Project/s02e06.mkv\r\n2015-08-28 10:16:55 ERROR FINDSUBTITLES :: Traceback (most recent call last):\r\n2015-08-28 10:16:55 INFO FINDSUBTITLES :: Error occurred when downloading subtitles for: /tv/The Mindy Project/s02e05.mkv\r\n2015-08-28 10:16:52 ERROR FINDSUBTITLES :: Traceback (most recent call last):\r\n2015-08-28 10:16:52 INFO FINDSUBTITLES :: Error occurred when downloading subtitles for: /tv/The Mindy Project/s02e04.mkv\r\n2015-08-28 10:16:50 ERROR FINDSUBTITLES :: Traceback (most recent call last):\r\n2015-08-28 10:16:50 INFO FINDSUBTITLES :: Error occurred when downloading subtitles for: /tv/The Mindy Project/s02e03.mkv\r\n2015-08-28 10:16:46 ERROR FINDSUBTITLES :: Traceback (most recent call last):\r\n2015-08-28 10:16:46 INFO FINDSUBTITLES :: Error occurred when downloading subtitles for: /tv/The Mindy Project/s02e02.mkv\r\n2015-08-28 10:16:44 ERROR FINDSUBTITLES :: Traceback (most recent call last):\r\n2015-08-28 10:16:44 INFO FINDSUBTITLES :: Error occurred when downloading subtitles for: /tv/The Mindy Project/s02e01.mkv\r\n```\r\n```\r\nSR Version:\tBRANCH: (develop) / COMMIT: (a7193c6983e62205360aac40d937ce9e846b6852) \r\nSR User:\tsickrage\r\nSR Locale:\t(None, None)\r\nSR Config file:\t/usr/share/sickrage/config.ini\r\nSR Database file:\t/usr/share/sickrage/sickbeard.db\r\nSR Cache Dir:\t/usr/share/sickrage/cache\r\nSR Log Dir:\t/usr/share/sickrage/Logs\r\nSR Arguments:\t['-q', '--daemon', '--nolaunch', '--datadir=/usr/share/sickrage']\r\nPython Version:\t2.7.9 (default, Mar 1 2015, 12:57:24) [GCC 4.9.2]\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wackou/guessit/issues/comments/135966265","html_url":"https://github.com/wackou/guessit/issues/225#issuecomment-135966265","issue_url":"https://api.github.com/repos/wackou/guessit/issues/225","id":135966265,"user":{"login":"Toilal","id":1165758,"avatar_url":"https://avatars.githubusercontent.com/u/1165758?v=3","gravatar_id":"","url":"https://api.github.com/users/Toilal","html_url":"https://github.com/Toilal","followers_url":"https://api.github.com/users/Toilal/followers","following_url":"https://api.github.com/users/Toilal/following{/other_user}","gists_url":"https://api.github.com/users/Toilal/gists{/gist_id}","starred_url":"https://api.github.com/users/Toilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toilal/subscriptions","organizations_url":"https://api.github.com/users/Toilal/orgs","repos_url":"https://api.github.com/users/Toilal/repos","events_url":"https://api.github.com/users/Toilal/events{/privacy}","received_events_url":"https://api.github.com/users/Toilal/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T09:25:55Z","updated_at":"2015-08-29T09:25:55Z","body":"Even if I can't reproduce it, there's something unsafe in the code that can cause this exact traceback, so I'll fix it."}}