If map names are included in the config, use them when generating text for the video thumbnail.
This commit is contained in:
parent
70c36ac615
commit
c89fde220c
1 changed files with 6 additions and 1 deletions
|
@ -32,6 +32,11 @@ class Text(dcc.doom_base.WadMap):
|
|||
return parser
|
||||
|
||||
def take_action(self, parsed_args):
|
||||
text = None
|
||||
map_names = self._config["map_names"]
|
||||
if map_names is not None:
|
||||
text = map_names[f"map{parsed_args.map}"]
|
||||
if text is None:
|
||||
text = sys.stdin.read().rstrip()
|
||||
if not parsed_args.nomap:
|
||||
text = "MAP{}: {}".format(parsed_args.map, text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue