1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-01-31 11:22:38 +00:00

Fix for embedded subtitles indexed even if use embedded subtitles is false.

This commit is contained in:
Louis Vézina 2019-04-02 22:22:51 -04:00
parent 52a530a991
commit e7155609c7

View file

@ -31,6 +31,7 @@ def store_subtitles(file):
actual_subtitles = []
if os.path.exists(file):
notifications.write(msg='Analyzing this file for subtitles: ' + file, queue='list_subtitles')
if settings.general.getboolean('use_embedded_subs'):
if os.path.splitext(file)[1] == '.mkv':
logging.debug("BAZARR is trying to index embedded subtitles.")
try:
@ -116,6 +117,7 @@ def store_subtitles_movie(file):
actual_subtitles = []
if os.path.exists(file):
notifications.write(msg='Analyzing this file for subtitles: ' + file, queue='list_subtitles')
if settings.general.getboolean('use_embedded_subs'):
if os.path.splitext(file)[1] == '.mkv':
logging.debug("BAZARR is trying to index embedded subtitles.")
try: