parent
e4ede9c4e1
commit
5daa95058d
2
main.go
2
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 {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue