Commit graph

28 commits

Author SHA1 Message Date
111def32bf
fix: handle command file comments properly 2025-04-09 12:02:41 +02:00
ce9214f537
fix: fix delta computation in sync command 2025-04-08 15:55:46 +02:00
2c0ff7f291
fix: fix command execution 2025-04-08 15:51:44 +02:00
ff58ed554a
fix: the sync command must use the text stream's previous entry as a reference 2025-04-08 14:37:59 +02:00
1c52044f9c
refactor: make code slightly cleaner 2025-04-08 14:21:16 +02:00
01e6f84f0b
fix: MAP used the wrong SRT as the time data source 2025-04-08 10:53:27 +02:00
d1307762b4
fix: don't parse PUT's third argument as JSON 2025-04-08 10:52:30 +02:00
c1e72da7fc
feat: support COPY of a single entry 2025-04-08 10:51:35 +02:00
32fa6353f3
fix: avoid error on empty command lines 2025-04-08 10:51:09 +02:00
c19d59492a
refactor: remove useless variable computation 2025-04-07 11:03:25 +02:00
899f167e58
refactor: use a table for command parsing instead of chained ifs 2025-04-07 11:02:43 +02:00
279a6ff004
refactor: extract command line splitting to separate method 2025-04-07 10:59:17 +02:00
ce07b6f0db
fix: properly handle end-of-line comments in command parsing 2025-04-07 10:57:02 +02:00
ea413d2e3e
feat: allow MAP command to use textstart-textend range 2025-04-07 10:31:23 +02:00
91caba2091
fix: collect and report errors during parsing and command processing 2025-04-07 10:23:39 +02:00
974a0b44aa
refactor: split read_commands into per-command methods 2025-04-07 10:12:38 +02:00
5b2c6c8259
fix: correct command part counts in read_commands 2025-04-06 16:59:27 +02:00
9a57fc40b7
fix: remove time_source from MAP command, deduce from text_source 2025-04-06 13:32:12 +02:00
56187476c3
feat: add PUT command and use shlex for command parsing 2025-04-06 13:05:29 +02:00
27f7f2ec38
refactor: process_command now passes args to handle_* using *cmd[1:] 2025-04-06 12:54:47 +02:00
98cedc4be3
refactor: pass individual parameters to command handlers instead of command tuple 2025-04-06 12:50:15 +02:00
8f3c0931bf
refactor: encapsulate SRT processing into SRTMerger class with properties and methods 2025-04-06 12:44:21 +02:00
49d44a8cc0
feat: allow selecting text SRT in SYNC command, using other for timestamp 2025-04-06 12:19:07 +02:00
17c7d50eef
fix: handle "-" output filename to write to stdout 2025-04-06 12:08:14 +02:00
a8c72b3efa
fix: Handle SRT files with BOM by using utf-8-sig encoding 2025-04-06 11:50:38 +02:00
50d8e6d261
feat: add SYNC command to merge entries with delta 2025-04-06 11:38:54 +02:00
07ef135a82
feat: add MAP command to merge text and timestamps from different sources 2025-04-06 10:53:33 +02:00
d616aed5df
feat: Add merge_srt.py to merge SRT files using COPY commands from a file 2025-04-06 10:38:39 +02:00