invoke vtt to srt as dedicated binary

master
Bel LaPointe 2021-01-25 08:56:50 -06:00
parent 0016e5afa9
commit 879ce2c090
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ func (c *Client) Download(video, local string) error {
"/bin/sh",
"-c",
fmt.Sprintf(
"true; python3 -m vtt_to_srt %q || python3 /usr/bin/vtt_to_srt.py %q",
"true; python3 -m vtt_to_srt %q || python3 /usr/bin/vtt_to_srt.py %q || vtt_to_srt %q",
path.Dir(local),
path.Dir(local),
path.Dir(local),
),