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:
parent
52a530a991
commit
e7155609c7
1 changed files with 42 additions and 40 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue