new subtitle backend : tvsubtitles

This commit is contained in:
Julien Veyssier 2013-02-26 00:29:45 +01:00
commit a6298871f2
8 changed files with 278 additions and 6 deletions

View file

@ -62,11 +62,6 @@ class OpensubtitlesBrowser(BaseBrowser):
return self.page.iter_subtitles()
def get_subtitle(self, id):
""" the id is formed this way : id_movie|id_file
the id_movie helps to find the page
the id_file help to find the file into the page
if NO id_movie set, using id_file to form the URL
"""
self.location('http://www.opensubtitles.org/subtitles/%s' % id)
assert self.is_on_page(SubtitlePage)
return self.page.get_subtitle()