Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| # Remove duplicated lines from a .vtt file generated by youtube-dl when | |
| # downloading auto-subs from a Youtube video using the --write-auto-sub option | |
| # This script only prints the lines so save the edited subs as: | |
| # | |
| # python this_script.py original_sub.vtt > new_sub.vtt | |
| import re | |
| import sys | |
| f = open(sys.argv[1]) |