Diaoul/subliminal — Issue #55: Unsupported characters in Directory name
Author: koenvanderlinden
Created: 2011-12-27 19:45:45+00:00
State: open

Scanning a directort that contains a '_' results in a error like this:

Traceback (most recent call last):
File "/opt/local/bin/subliminal", line 5, in
pkg_resources.run_script('subliminal==0.5', 'subliminal')
File "/opt/lib/python2.7/site-packages/pkg_resources.py", line 489, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/opt/lib/python2.7/site-packages/pkg_resources.py", line 1214, in run_script
exec script_code in namespace, namespace
File "/opt/local/lib/python2.7/site-packages/subliminal-0.5-py2.7.egg/EGG-INFO/scripts/subliminal", line 76, in

File "/opt/local/lib/python2.7/site-packages/subliminal-0.5-py2.7.egg/EGG-INFO/scripts/subliminal", line 63, in main

File "build/bdist.linux-armv5tel/egg/subliminal/core.py", line 192, in downloadSubtitles
File "build/bdist.linux-armv5tel/egg/subliminal/core.py", line 146, in listSubtitles
File "build/bdist.linux-armv5tel/egg/subliminal/videos.py", line 212, in scan
File "build/bdist.linux-armv5tel/egg/subliminal/videos.py", line 207, in scan
File "build/bdist.linux-armv5tel/egg/subliminal/videos.py", line 55, in fromPath
File "/opt/local/lib/python2.7/site-packages/guessit-0.2-py2.7.egg/guessit/__init__.py", line 57, in guess_file_info
m = IterativeMatcher(filename, filetype = filetype)
File "/opt/local/lib/python2.7/site-packages/guessit-0.2-py2.7.egg/guessit/matcher.py", line 420, in __init__
pathpart[gidx] = guess_groups(explicit_group, result, filetype = filetype)
File "/opt/local/lib/python2.7/site-packages/guessit-0.2-py2.7.egg/guessit/matcher.py", line 197, in guess_groups
assert(current[0] == ' ' and current[-1] == ' ')
AssertionError