RedRise/lm — Issue #9: Special chars and --download
Author: MatthieuBizien
Created: 2012-02-27 23:30:32+00:00
State: open

Hi

There is an issue with special chars in the path when you download subtitles.

```python
$ ./lm.py ~/Vidéos/ --download eng

2012-02-28 00:28:25,082: LM - ERROR - this path doesnt belong to cash_path /home/matthieu/Vidéos/Phy432_amphi_7.mkv
Traceback (most recent call last):
File "./lm.py", line 1436, in
LM.download_subtitle(files, options.download)
File "./lm.py", line 1005, in download_subtitle
ref, query = self.download_subtitles_query( files, language )
File "./lm.py", line 1047, in download_subtitles_query
filedir = os.path.dirname(f).decode(sys.getdefaultencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)
```

Regards
Matthieu