2 Commits
v0.8 ... v0.9

Author SHA1 Message Date
Bel LaPointe
71588dee79 whoops 2021-01-25 09:00:38 -06:00
Bel LaPointe
879ce2c090 invoke vtt to srt as dedicated binary 2021-01-25 08:56:50 -06:00
2 changed files with 3 additions and 1 deletions

View File

@@ -46,4 +46,5 @@ func init() {
POP3: as.Get("pop3").GetString(), POP3: as.Get("pop3").GetString(),
Password: as.Get("password").GetString(), Password: as.Get("password").GetString(),
} }
Interval = as.GetDuration("interval")
} }

View File

@@ -52,7 +52,8 @@ func (c *Client) Download(video, local string) error {
"/bin/sh", "/bin/sh",
"-c", "-c",
fmt.Sprintf( 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),
path.Dir(local), path.Dir(local),
), ),