Skip to content

Commit

Permalink
netnippori: fix raw data attach code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesmiscore committed Jul 19, 2022
1 parent 58be32c commit ed08880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/neonippori.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def load_comments(input_text, input_format, stage_width, stage_height, reserve_b
comments = parse_comments(input_text, input_format, font_size, report_warning)
with io.StringIO() as fo:
process_comments(comments, fo, stage_width, stage_height, reserve_blank, font_face, font_size, text_opacity, duration_marquee, duration_still, report_warning)
return re.sub(r'^' + re.escape('; JSON DATA HERE'), f'; {input_text}', fo.getvalue())
return re.sub(r'^' + re.escape('; JSON DATA HERE'), lambda x: f'; {input_text}', fo.getvalue())


__all__ = [
Expand Down

0 comments on commit ed08880

Please sign in to comment.