2 Commits
v0.4 ... v0.6

Author SHA1 Message Date
bel
5daa95058d more often and fix bash 2020-12-14 22:09:21 -07:00
bel
e4ede9c4e1 Fix install cmd 2020-12-08 07:50:11 -07:00
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -49,7 +49,7 @@ func (c *Client) Download(video, local string) error {
return err return err
} }
cmd := exec.Command( cmd := exec.Command(
"bash", "/bin/bash",
"-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",

View File

@@ -42,7 +42,7 @@ func installPyPip3FFMPEG() error {
if err == nil { if err == nil {
return nil return nil
} }
log.Println("%v: %v", err, combo) log.Printf("%v: %v", err, combo)
} }
return errors.New("cannot get python3 and pip3 and ffmpeg") return errors.New("cannot get python3 and pip3 and ffmpeg")
} }