One function
write in glut23/webvtt-py
The author described this change as “Fix save SRT to not include cue tags #56”. It counts as a record because the check below fails on the code as it stood at 14e1ab82e and passes on 1ee404965, with nothing else changed between the two runs.
Projectglut23/webvtt-py
Fix saved2024-05-17
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a docstring
Write captions to an output. :param f: file or file-like object :param captions: Iterable of `Caption` objects
The change
| 15 | 15 | '{} --> {}'.format(*map(lambda x: x.replace('.', ','), | |
| 16 | 16 | (caption.start, caption.end)) | |
| 17 | 17 | ), | |
| 18 | - | *caption.lines, | |
| 18 | + | *caption.text.splitlines(), | |
| 19 | 19 | '' | |
| 20 | 20 | ]) | |
| 21 | 21 | f.write('\n'.join(output).rstrip()) |
The check that tells the two apart
fail→pass·tests/test_webvtt.py::TestWebVTT::test_write_captions_in_srt_no_cuetags
Check file tests/test_webvtt.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it14e1ab82e95df71b338282b4454693880952f483
Broken version dated2024-05-15
Modulewebvtt.srt
Units changedwrite
Fingerprint34f6aa8f80e2c469
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.