From 5daa95058d61c7ccc49c01c575441850ac2a414c Mon Sep 17 00:00:00 2001 From: bel Date: Mon, 14 Dec 2020 22:09:21 -0700 Subject: [PATCH] more often and fix bash --- main.go | 2 +- youtubedl/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index f2daed1..e777385 100755 --- a/main.go +++ b/main.go @@ -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 { diff --git a/youtubedl/client.go b/youtubedl/client.go index fadbd5f..221eda8 100755 --- a/youtubedl/client.go +++ b/youtubedl/client.go @@ -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",