mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-22 13:53:11 +08:00
Titulky provider some changes for python v3 compatibility
This commit is contained in:
parent
6e3c340829
commit
7171635441
1 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ class TitulkyProvider(Provider):
|
||||||
'Password': self.password}
|
'Password': self.password}
|
||||||
r = self.session.post(self.server_url, data, allow_redirects=False, timeout=10)
|
r = self.session.post(self.server_url, data, allow_redirects=False, timeout=10)
|
||||||
|
|
||||||
if 'BadLogin' in r.content:
|
if 'BadLogin' in r.text:
|
||||||
raise AuthenticationError(self.username)
|
raise AuthenticationError(self.username)
|
||||||
|
|
||||||
logger.debug('Logged in')
|
logger.debug('Logged in')
|
||||||
|
@ -259,9 +259,9 @@ class TitulkyProvider(Provider):
|
||||||
langs = 'CZ'
|
langs = 'CZ'
|
||||||
name = '%s (%s)' % (version, langs)
|
name = '%s (%s)' % (version, langs)
|
||||||
|
|
||||||
if ('CZ' in langs):
|
if b'CZ' in langs:
|
||||||
language = Language('ces')
|
language = Language('ces')
|
||||||
elif ('SK' in langs):
|
elif b'SK' in langs:
|
||||||
language = Language('slk')
|
language = Language('slk')
|
||||||
# read the item
|
# read the item
|
||||||
# subtitle = self.subtitle_class(language, page_link, year, version, page_link.replace("detail", "dld"))
|
# subtitle = self.subtitle_class(language, page_link, year, version, page_link.replace("detail", "dld"))
|
||||||
|
|
Loading…
Reference in a new issue