11
This commit is contained in:
@@ -657,6 +657,19 @@ class AdvancedCoverGenerator:
|
||||
title_text = self.config.get('title', self.template.get('titleText', ''))
|
||||
subtitle_text = self.template.get('subtitleText', '')
|
||||
|
||||
titles_config = self.template.get('titles')
|
||||
if titles_config and isinstance(titles_config, dict):
|
||||
main_cfg = titles_config.get('main') or {}
|
||||
sub_cfg = titles_config.get('sub') or {}
|
||||
if main_cfg.get('text'):
|
||||
title_text = main_cfg['text']
|
||||
elif self.template.get('titleText'):
|
||||
title_text = self.template.get('titleText')
|
||||
if sub_cfg.get('text') is not None:
|
||||
subtitle_text = sub_cfg.get('text') or ''
|
||||
elif self.template.get('subtitleText') is not None:
|
||||
subtitle_text = self.template.get('subtitleText') or ''
|
||||
|
||||
if not title_text and not subtitle_text:
|
||||
print("Step 5: No title or subtitle text, skipping", file=sys.stderr)
|
||||
return image
|
||||
|
||||
Reference in New Issue
Block a user