| def test_obtain_guessit_query():
|
| > assert obtain_guessit_query('Drive (2011) BDRip XviD-COCAIN.avi', 'eng') == {
|
| 'query': '"Drive" "2011"',
|
| 'sublanguageid' : 'eng',
|
| }
|
|
|
| tests/test_ss.py:172:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| ss.py:24: in obtain_guessit_query
|
| guess = guessit.guess_file_info(os.path.basename(movie_filename), info=['filename'])
|
| /usr/local/lib/python3.10/dist-packages/guessit/__init__.py:170: in guess_file_info
|
| result.append(_guess_filename(filename, options, **kwargs))
|
| /usr/local/lib/python3.10/dist-packages/guessit/__init__.py:109: in _guess_filename
|
| mtree = _build_filename_mtree(filename, options=options, **kwargs)
|
| /usr/local/lib/python3.10/dist-packages/guessit/__init__.py:115: in _build_filename_mtree
|
| mtree = IterativeMatcher(filename, options=options, **kwargs)
|
| /usr/local/lib/python3.10/dist-packages/guessit/matcher.py:104: in __init__
|
| for transformer in transformers.all_transformers():
|
| /usr/local/lib/python3.10/dist-packages/guessit/plugins/transformers.py:161: in all_transformers
|
| return _extensions.objects()
|
| /usr/local/lib/python3.10/dist-packages/guessit/plugins/transformers.py:99: in objects
|
| return self.map(self._get_obj)
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| self = <guessit.plugins.transformers.DefaultTransformerExtensionManager object at 0x7efe5e190490>
|
| func = <bound method CustomTransformerExtensionManager._get_obj of <guessit.plugins.transformers.DefaultTransformerExtensionManager object at 0x7efe5e190490>>
|
| args = (), kwds = {}
|
|
|
| def map(self, func, *args, **kwds):
|
| """Iterate over the extensions invoking func() for each.
|
|
|
| The signature for func() should be::
|
|
|
| def func(ext, *args, **kwds):
|
| pass
|
|
|
| The first argument to func(), 'ext', is the
|
| :class:`~stevedore.extension.Extension` instance.
|
|
|
| Exceptions raised from within func() are propagated up and
|
| processing stopped if self.propagate_map_exceptions is True,
|
| otherwise they are logged and ignored.
|
|
|
| :param func: Callable to invoke for each extension.
|
| :param args: Variable arguments to pass to func()
|
| :param kwds: Keyword arguments to pass to func()
|
| :returns: List of values returned from func()
|
| """
|
| if not self.extensions:
|
| # FIXME: Use a more specific exception class here.
|
| > raise NoMatches('No %s extensions found' % self.namespace)
|
| E stevedore.exception.NoMatches: No guessit.transformer extensions found
|
|
|
| /usr/local/lib/python3.10/dist-packages/stevedore/extension.py:261: NoMatches
|