p="/home/ubuntu/muse-space/work/surfex-creative/build_ad.py"
lines=open(p).read().splitlines()
newline="    vf.append(f\"drawtext=fontfile={BOLD}:textfile={bf}:fontsize={76 if big.startswith(chr(83)) else 96}:fontcolor=white:borderw=4:bordercolor=black:x=(w-text_w)/2:y=150:enable=" + chr(39) + "{en}" + chr(39) + "\")"
for i,l in enumerate(lines):
    if "fontsize=" in l and "BOLD" in l:
        lines[i]=newline
        break
open(p,"w").write("\n".join(lines)+"\n")
print("line replaced")
