mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-01 12:32:25 +08:00
Fixed wizdom provider urls
This commit is contained in:
parent
e503afdc2c
commit
577a0d6542
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ class WizdomProvider(Provider):
|
|||
# search
|
||||
logger.debug('Using IMDB ID %r', imdb_id)
|
||||
url = 'https://{}/api/releases/{}'.format(self.server_url, imdb_id)
|
||||
page_link = 'http://{}/#/{}/{}'.format(self.server_url, 'movies' if is_movie else 'series', imdb_id)
|
||||
page_link = 'http://{}/{}/{}'.format(self.server_url, 'movies' if is_movie else 'series', imdb_id)
|
||||
|
||||
# get the list of subtitles
|
||||
logger.debug('Getting the list of subtitles')
|
||||
|
@ -202,7 +202,7 @@ class WizdomProvider(Provider):
|
|||
|
||||
def download_subtitle(self, subtitle):
|
||||
# download
|
||||
url = 'http://zip.{}/{}.zip'.format(self.server_url, subtitle.subtitle_id)
|
||||
url = 'http://{}/api/files/sub/{}'.format(self.server_url, subtitle.subtitle_id)
|
||||
r = self.session.get(url, headers={'Referer': subtitle.page_link}, timeout=10)
|
||||
r.raise_for_status()
|
||||
|
||||
|
|
Loading…
Reference in a new issue