cdown/srt

Redirecting stderr to a file as option

padovaSR opened this issue · 2 comments

Hi,
This is not an issue,
just question if is possible to have an option to redirect error messages
from sys_stderr to a log file.

Thanks

cdown commented

Hi. In any POSIX-like shell, you can do this with 2>logfile:

% printf '1\n00:00:00,000 --> 00:00:00,000\nskipme\n\n' | srt fix-subtitle-indexing 2>logfile  
% cat logfile
WARNING:srt:Skipped subtitle at index 1: Subtitle start time >= end time

Thanks