diff --git a/utils/.config.template.toml b/utils/.config.template.toml index 90f286a..191034d 100644 --- a/utils/.config.template.toml +++ b/utils/.config.template.toml @@ -32,6 +32,7 @@ storymode_max_length = { optional = true, default = 1000, example = 1000, explan resolution_w = { optional = false, default = 1080, example = 1440, explantation = "Sets the width in pixels of the final video" } resolution_h = { optional = false, default = 1920, example = 2560, explantation = "Sets the height in pixels of the final video" } zoom = { optional = true, default = 1, example = 1.1, explanation = "Sets the browser zoom level. Useful if you want the text larger.", type = "float", nmin = 0.1, nmax = 2, oob_error = "The text is really difficult to read at a zoom level higher than 2" } +channel_name = { optional = true, default = "Reddit Tales", example = "Reddit Stories", explanation = "Sets the username that appaers in the fancy title screen" } [settings.background] background_video = { optional = true, default = "minecraft", example = "rocket-league", options = ["minecraft", "gta", "rocket-league", "motor-gta", "csgo-surf", "cluster-truck", "minecraft-2","multiversus","fall-guys","steep", ""], explanation = "Sets the background for the video based on game name" } diff --git a/video_creation/final_video.py b/video_creation/final_video.py index e4d9367..79cf3d8 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -121,7 +121,7 @@ def create_fancy_thumbnail(image, text, text_color, padding, wrap=35): draw = ImageDraw.Draw(image) username_font = ImageFont.truetype(os.path.join("fonts", "Roboto-Bold.ttf"), 30) - draw.text((205, 825), f"Reddit Tales", font=username_font, fill=text_color, align="left") + draw.text((205, 825), settings.config["settings"]["channel_name"], font=username_font, fill=text_color, align="left") if len(lines) == 3: lines = textwrap.wrap(text, width=wrap+10)