mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-03 01:55:48 +00:00
core: update to subliminal_patch:head; subscene: http: fall back to local DNS in case of NXDOMAIN; titlovi: fix querying
This commit is contained in:
parent
e023e82e44
commit
763d90d702
2 changed files with 1 additions and 2 deletions
|
@ -354,7 +354,6 @@ def patch_create_connection():
|
|||
return _orig_create_connection((ip, port), *args, **kwargs)
|
||||
except dns.exception.DNSException:
|
||||
logger.warning("DNS: Couldn't resolve %s with DNS: %s", host, custom_resolver.nameservers)
|
||||
raise
|
||||
|
||||
logger.debug("DNS: Falling back to default DNS or IP on %s", host)
|
||||
return _orig_create_connection((host, port), *args, **kwargs)
|
||||
|
|
|
@ -226,7 +226,7 @@ class TitloviProvider(Provider, ProviderSubtitleArchiveMixin):
|
|||
page_link = self.server_url + sub.a.attrs['href']
|
||||
# subtitle language
|
||||
_lang = sub.select_one('.lang')
|
||||
match = lang_re.search(_lang.attrs.get('src', _lang.attrs.get('cfsrc', '')))
|
||||
match = lang_re.search(_lang.attrs.get('src', _lang.attrs.get('data-cfsrc', '')))
|
||||
if match:
|
||||
try:
|
||||
# decode language
|
||||
|
|
Loading…
Reference in a new issue