You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Bold", "Italic", "Underline" and "StrikeOut" aren't being parsed (always returning the default value, False). Currently, one needs to manually parse them if necessary.
This is what i implemented (i'll always have only one style). Might help someone:
with open(file, 'r') as f:
lines = f.read().splitlines()
lines = [line.replace("Format: ", "").replace("Style: ", "").split(",") for line in lines if line.startswith("Style:") or line.startswith("Format:")][:-1]
subs_styles = {k.strip().lower().replace("colour", "color"): v[0] for k, *v in zip(*lines)}
The text was updated successfully, but these errors were encountered:
For the .ass with this content:
"Bold", "Italic", "Underline" and "StrikeOut" aren't being parsed (always returning the default value,
False
). Currently, one needs to manually parse them if necessary.This is what i implemented (i'll always have only one style). Might help someone:
The text was updated successfully, but these errors were encountered: