Skip to content

Commit e546b8b

Browse files
committed
Fix bug, where background color from config file was not parsed
1 parent c44b995 commit e546b8b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pyvideothumbnailer"
7-
version = "2.0.2"
7+
version = "2.0.3"
88
authors = [
99
{ name="Harald Hetzner", email="57875126+hhtznr@users.noreply.github.com" },
1010
]

src/pyvideothumbnailer/videothumbnailer.py

100755100644
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
__author__ = 'Harald Hetzner'
4242
__license__ = 'BSD 3-Clause License'
43-
__version__ = '2.0.2'
43+
__version__ = '2.0.3'
4444

4545
class Parameters:
4646
"""
@@ -493,6 +493,10 @@ def __init_parameters(self):
493493
self.parameters.vertical_video_rows = config.getint(ConfigFile.CONFIG_SECTION_LAYOUT, 'vertical_video_rows')
494494
if 'spacing' in layout_options:
495495
self.parameters.spacing = config.getint(ConfigFile.CONFIG_SECTION_LAYOUT, 'spacing')
496+
if 'background_color' in layout_options:
497+
color_value = config.get(ConfigFile.CONFIG_SECTION_LAYOUT, 'background_color')
498+
if color_value is not None and color_value != '':
499+
self.parameters.background_color= ImageColor.getrgb(color_value)
496500
if 'no_header' in layout_options:
497501
self.parameters.no_header = config.getboolean(ConfigFile.CONFIG_SECTION_LAYOUT, 'no_header')
498502
if 'header_font' in layout_options:

0 commit comments

Comments
 (0)