more often and fix bash

master v0.6
bel 2020-12-14 22:09:21 -07:00
parent e4ede9c4e1
commit 5daa95058d
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ func main() {
if err != nil {
panic(err)
}
interval := time.Hour * 4
interval := time.Minute * 30
for true {
err := do(client)
if err != nil {

View File

@ -49,7 +49,7 @@ func (c *Client) Download(video, local string) error {
return err
}
cmd := exec.Command(
"bash",
"/bin/bash",
"-c",
fmt.Sprintf(
"true; python3 -m vtt_to_srt %q || python3 /usr/bin/vtt_to_srt.py %q",