diff options
author | panni <[email protected]> | 2019-01-27 04:23:19 +0100 |
---|---|---|
committer | panni <[email protected]> | 2019-01-27 04:23:19 +0100 |
commit | f7550e188977f4c54b28e2459d74f777591e81bf (patch) | |
tree | 6511fbee8c1a77e3f0c4d7723b4bf3a547f47e38 /libs/subscene_api | |
parent | 67963633eff180f0386c3ecc39bee9015de7bbe7 (diff) | |
download | bazarr-f7550e188977f4c54b28e2459d74f777591e81bf.tar.gz bazarr-f7550e188977f4c54b28e2459d74f777591e81bf.zip |
libs: update subliminal_patch to newest develop: fix subscene missing poster; don't raise an exception when subtitle not found inside archive
Diffstat (limited to 'libs/subscene_api')
-rw-r--r-- | libs/subscene_api/subscene.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/subscene_api/subscene.py b/libs/subscene_api/subscene.py index e57db3c44..e2b14ea26 100644 --- a/libs/subscene_api/subscene.py +++ b/libs/subscene_api/subscene.py @@ -176,8 +176,12 @@ class Film(object): content = soup.find("div", "subtitles") header = content.find("div", "box clearfix") + cover = None - cover = header.find("div", "poster").img.get("src") + try: + cover = header.find("div", "poster").img.get("src") + except AttributeError: + pass title = header.find("div", "header").h2.text[:-12].strip() |