alignment checks lowered string (it is available to use top_left in presets

This commit is contained in:
iLLiCiTiT 2020-02-06 10:52:26 +01:00
parent d263cc3bfd
commit be088579be

View file

@ -359,17 +359,18 @@ def burnins_from_data(input_path, codec_data, output_path, data, overwrite=True)
for align_text, preset in presets.get('burnins', {}).items(): for align_text, preset in presets.get('burnins', {}).items():
align = None align = None
if align_text == 'TOP_LEFT': align_text = align_text.strip().lower()
if align_text == "top_left":
align = ModifiedBurnins.TOP_LEFT align = ModifiedBurnins.TOP_LEFT
elif align_text == 'TOP_CENTERED': elif align_text == "top_centered":
align = ModifiedBurnins.TOP_CENTERED align = ModifiedBurnins.TOP_CENTERED
elif align_text == 'TOP_RIGHT': elif align_text == "top_right":
align = ModifiedBurnins.TOP_RIGHT align = ModifiedBurnins.TOP_RIGHT
elif align_text == 'BOTTOM_LEFT': elif align_text == "bottom_left":
align = ModifiedBurnins.BOTTOM_LEFT align = ModifiedBurnins.BOTTOM_LEFT
elif align_text == 'BOTTOM_CENTERED': elif align_text == "bottom_centered":
align = ModifiedBurnins.BOTTOM_CENTERED align = ModifiedBurnins.BOTTOM_CENTERED
elif align_text == 'BOTTOM_RIGHT': elif align_text == "bottom_right":
align = ModifiedBurnins.BOTTOM_RIGHT align = ModifiedBurnins.BOTTOM_RIGHT
bi_func = preset.get('function') bi_func = preset.get('function')