[tvsubtitles] encoding fixes
This commit is contained in:
parent
98235d7719
commit
320a477b87
2 changed files with 4 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue