{"action":"created","issue":{"url":"https://api.github.com/repos/Diaoul/subliminal/issues/568","labels_url":"https://api.github.com/repos/Diaoul/subliminal/issues/568/labels{/name}","comments_url":"https://api.github.com/repos/Diaoul/subliminal/issues/568/comments","events_url":"https://api.github.com/repos/Diaoul/subliminal/issues/568/events","html_url":"https://github.com/Diaoul/subliminal/issues/568","id":129760089,"number":568,"title":"[Resolved] MatchTree Error","user":{"login":"MoonArrow","id":15667553,"avatar_url":"https://avatars.githubusercontent.com/u/15667553?v=3","gravatar_id":"","url":"https://api.github.com/users/MoonArrow","html_url":"https://github.com/MoonArrow","followers_url":"https://api.github.com/users/MoonArrow/followers","following_url":"https://api.github.com/users/MoonArrow/following{/other_user}","gists_url":"https://api.github.com/users/MoonArrow/gists{/gist_id}","starred_url":"https://api.github.com/users/MoonArrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoonArrow/subscriptions","organizations_url":"https://api.github.com/users/MoonArrow/orgs","repos_url":"https://api.github.com/users/MoonArrow/repos","events_url":"https://api.github.com/users/MoonArrow/events{/privacy}","received_events_url":"https://api.github.com/users/MoonArrow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Diaoul/subliminal/labels/type/bug","name":"type/bug","color":"e11d21"},{"url":"https://api.github.com/repos/Diaoul/subliminal/labels/type/dependency","name":"type/dependency","color":"f33f43"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-01-29T13:00:00Z","updated_at":"2016-02-01T22:01:58Z","closed_at":"2016-02-01T22:01:58Z","body":"Hi,\r\nI am using the last official version of Subliminal (v 1.1.1) on a 14.04 server. I get this error:\r\n\r\n> Traceback (most recent call last):\r\n>   File \"/usr/local/bin/subliminal\", line 11, in <module>\r\n>     sys.exit(subliminal())\r\n>   File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 716, in __call__\r\n>     return self.main(*args, **kwargs)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 696, in main\r\n>     rv = self.invoke(ctx)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 1060, in invoke\r\n>     return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n>   File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 889, in invoke\r\n>     return ctx.invoke(self.callback, **ctx.params)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 534, in invoke\r\n>     return callback(*args, **kwargs)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/click/decorators.py\", line 27, in new_func\r\n>     return f(get_current_context().obj, *args, **kwargs)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/subliminal/cli.py\", line 372, in download\r\n>     hearing_impaired=hearing_impaired, only_one=single)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/subliminal/api.py\", line 184, in download_best_subtitles\r\n>     for s in subtitles], key=operator.itemgetter(1), reverse=True)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/subliminal/providers/opensubtitles.py\", line 69, in get_matches\r\n>     matches |= guess_matches(video, guess_episode_info(self.movie_release_name + '.mkv'))\r\n>   File \"/usr/local/lib/python2.7/dist-packages/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/local/lib/python2.7/dist-packages/guessit/__init__.py\", line 302, in guess_file_info\r\n>     result.append(_guess_filename(filename, options, **kwargs))\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/__init__.py\", line 114, in _guess_filename\r\n>     mtree = _build_filename_mtree(filename, options=options, **kwargs)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/__init__.py\", line 127, in _build_filename_mtree\r\n>     mtree = IterativeMatcher(filename, options=merged_options, **kwargs)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/matcher.py\", line 120, in __init__\r\n>     self._process(transformer, False)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/matcher.py\", line 138, in _process\r\n>     transformer.process(self.match_tree, self.options)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/transfo/guess_release_group.py\", line 223, in process\r\n>     GuessFinder(self.guess_release_group, None, self.log, options).process_nodes(mtree.unidentified_leaves())\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/matcher.py\", line 227, in process_nodes\r\n>     self.process_node(node)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/matcher.py\", line 286, in process_node\r\n>     self.process_node(node, partial_span=relative_span, skip_nodes=next_skip_nodes)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/matcher.py\", line 241, in process_node\r\n>     matcher_result = self.guess_func(string, node, self.options)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/transfo/guess_release_group.py\", line 175, in guess_release_group\r\n>     if self.validate_node(leaf, node, True):\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/transfo/guess_release_group.py\", line 143, in validate_node\r\n>     if not self.validate_next_leaves(node):\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/transfo/guess_release_group.py\", line 126, in validate_next_leaves\r\n>     next_leaf = node.root.next_leaf(node)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/matchtree.py\", line 318, in next_leaf\r\n>     return self._other_leaf(leaf, +1)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/guessit/matchtree.py\", line 322, in _other_leaf\r\n>     index = leaves.index(leaf) + offset\r\n> ValueError: \\<MatchTree: root=.FR.W4F.FR.NoTAG\\> is not in list\r\n\r\nThe command line looks like:\r\nsubliminal  --addic7ed \"login\" \"passwd\" --opensubtitles  \"login2\" \"passwd2\" download -l fr -l en --min-score 35  --encoding utf-8 -p opensubtitles -p addic7ed \"/path/to/directory/\"\r\n\r\nOf course, directory exists, is readable and contains some videos (all MP4s). I must precise that some of the files names have very few/no information to guess what version could be applied. Like seriename.S02E03.mp4 and that's all, if it could help.\r\n\r\nObviously, the same command line is working for ages for tvshows and movies without a change. No special updates I can think of on the system.\r\n\r\nDon't hesitate to ask me details or testing if needed.\r\nM.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Diaoul/subliminal/issues/comments/178218001","html_url":"https://github.com/Diaoul/subliminal/issues/568#issuecomment-178218001","issue_url":"https://api.github.com/repos/Diaoul/subliminal/issues/568","id":178218001,"user":{"login":"Diaoul","id":319220,"avatar_url":"https://avatars.githubusercontent.com/u/319220?v=3","gravatar_id":"","url":"https://api.github.com/users/Diaoul","html_url":"https://github.com/Diaoul","followers_url":"https://api.github.com/users/Diaoul/followers","following_url":"https://api.github.com/users/Diaoul/following{/other_user}","gists_url":"https://api.github.com/users/Diaoul/gists{/gist_id}","starred_url":"https://api.github.com/users/Diaoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diaoul/subscriptions","organizations_url":"https://api.github.com/users/Diaoul/orgs","repos_url":"https://api.github.com/users/Diaoul/repos","events_url":"https://api.github.com/users/Diaoul/events{/privacy}","received_events_url":"https://api.github.com/users/Diaoul/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T22:01:58Z","updated_at":"2016-02-01T22:01:58Z","body":"Thanks"}}