[tvsubtitles] encoding fixes

This commit is contained in:
Julien Veyssier 2013-03-11 00:11:19 +01:00
commit 320a477b87
2 changed files with 4 additions and 5 deletions

View file

@ -29,8 +29,7 @@ class TvsubtitlesTest(BackendTest):
subtitles = list(self.backend.iter_subtitles('fr','sopranos'))
assert (len(subtitles) > 0)
for subtitle in subtitles:
path, qs = urllib.splitquery(subtitle.url)
assert path.endswith('.zip')
assert subtitle.url.startswith('http')
# get the file of a random sub
if len(subtitles):