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()
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ from weboob.capabilities.subtitle import Subtitle
|
|||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.misc import get_bytes_size
|
||||
import time
|
||||
|
||||
|
||||
__all__ = ['SubtitlesPage','SearchPage']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue