new subtitle backend : tvsubtitles
This commit is contained in:
parent
968df91c4d
commit
a6298871f2
8 changed files with 278 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue