mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-22 13:53:11 +08:00
update to latest subliminal_patch; loosen lxml requirement
This commit is contained in:
parent
f941ee5199
commit
83bb1aca09
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,6 @@ import re
|
||||||
import io
|
import io
|
||||||
|
|
||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
from lxml.etree import XMLSyntaxError
|
|
||||||
|
|
||||||
from guessit import guessit
|
from guessit import guessit
|
||||||
from subliminal.subtitle import guess_matches
|
from subliminal.subtitle import guess_matches
|
||||||
|
@ -19,6 +18,7 @@ except ImportError:
|
||||||
import xml.etree.cElementTree as etree
|
import xml.etree.cElementTree as etree
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import xml.etree.ElementTree as etree
|
import xml.etree.ElementTree as etree
|
||||||
|
|
||||||
from babelfish import language_converters
|
from babelfish import language_converters
|
||||||
from subliminal import Episode
|
from subliminal import Episode
|
||||||
from subliminal import Movie
|
from subliminal import Movie
|
||||||
|
@ -175,7 +175,7 @@ class PodnapisiProvider(_PodnapisiProvider, ProviderSubtitleArchiveMixin):
|
||||||
try:
|
try:
|
||||||
content = self.session.get(self.server_url + 'search/old', params=params, timeout=10).content
|
content = self.session.get(self.server_url + 'search/old', params=params, timeout=10).content
|
||||||
xml = etree.fromstring(content)
|
xml = etree.fromstring(content)
|
||||||
except XMLSyntaxError:
|
except etree.ParseError:
|
||||||
logger.error("Wrong data returned: %r", content)
|
logger.error("Wrong data returned: %r", content)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue