Skip to content

Instantly share code, notes, and snippets.

View larshb's full-sized avatar
🏎️

Lars Henrik Bolstad larshb

🏎️
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
import re
from argparse import ArgumentParser
from pathlib import Path
import logging as log
SRT_REGEX = r"(?P<index>\d+)\n(?P<time>[\d\:\ \-\>\,]+)\n(?P<text>(?:.|\n)*?)\n\n"
EPILOG = f'''Example: