SickBeard-Team/SickBeard — Issue #7: Error when downloading sub
Author: Slevin90
Created: 2012-01-11 14:30:58+00:00
State: open

I don't know much about real coding,
but here is the error i see in my logs:

```Jan-11 13:42:51 ERROR FINDSUBTITLES :: Exception generated in thread FINDSUBTITLES:
Jan-11 13:42:51 DEBUG FINDSUBTITLES :: Traceback (most recent call last):
File "/opt/sybhttpd/localhost.drives/HARD_DISK/Apps/sickbeard/sickbeard/scheduler.py", line 71, in runAction
self.action.run()
File "/opt/sybhttpd/localhost.drives/HARD_DISK/Apps/sickbeard/sickbeard/subtitles.py", line 144, in run
subtitles = subli.downloadSubtitles(locations)
File "/share/Apps/sickbeard/lib/subliminal/core.py", line 192, in downloadSubtitles
by_video = self.groupByVideo(self.listSubtitles(entries, False))
File "/share/Apps/sickbeard/lib/subliminal/core.py", line 146, in listSubtitles
scan_result.extend(videos.scan(e))
File "/share/Apps/sickbeard/lib/subliminal/videos.py", line 207, in scan
video = Video.fromPath(entry)
File "/share/Apps/sickbeard/lib/subliminal/videos.py", line 55, in fromPath
guess = guessit.guess_file_info(path, 'autodetect')
File "/share/Apps/sickbeard/lib/guessit/__init__.py", line 57, in guess_file_info
m = IterativeMatcher(filename, filetype = filetype)
File "/share/Apps/sickbeard/lib/guessit/matcher.py", line 420, in __init__
pathpart[gidx] = guess_groups(explicit_group, result, filetype = filetype)
File "/share/Apps/sickbeard/lib/guessit/matcher.py", line 197, in guess_groups
assert(current[0] == ' ' and current[-1] == ' ')
AssertionError
```