Compare commits

...

2 Commits

Author SHA1 Message Date
Anderson Shindy Oki 531c1f20db
Merge c655e0c772 into 369b2c7343 2024-04-24 00:38:44 +02:00
Vitiko 369b2c7343 Embedded Subtitles provider: handle FileNotFoundError 2024-04-23 17:20:36 -04:00
1 changed files with 5 additions and 2 deletions

View File

@ -208,8 +208,11 @@ class EmbeddedSubtitlesProvider(Provider):
except Exception as error:
logger.debug("'%s' raised running modifier", error)
with open(path, "rb") as sub:
subtitle.content = sub.read()
if os.path.exists(path):
with open(path, "rb") as sub:
subtitle.content = sub.read()
else:
logger.error("%s not found in filesystem", path)
def _get_subtitle_path(self, subtitle: EmbeddedSubtitle):
container = subtitle.container