From 763d90d702bd4e2b5993ce204ac1fb59f3fa943d Mon Sep 17 00:00:00 2001 From: panni Date: Sat, 27 Jul 2019 03:25:45 +0200 Subject: [PATCH] core: update to subliminal_patch:head; subscene: http: fall back to local DNS in case of NXDOMAIN; titlovi: fix querying --- libs/subliminal_patch/http.py | 1 - libs/subliminal_patch/providers/titlovi.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/subliminal_patch/http.py b/libs/subliminal_patch/http.py index b4fe6ad8f..db313578e 100644 --- a/libs/subliminal_patch/http.py +++ b/libs/subliminal_patch/http.py @@ -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) diff --git a/libs/subliminal_patch/providers/titlovi.py b/libs/subliminal_patch/providers/titlovi.py index 17d87ac32..c0a1ffa11 100644 --- a/libs/subliminal_patch/providers/titlovi.py +++ b/libs/subliminal_patch/providers/titlovi.py @@ -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