Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5daa95058d |
2
main.go
2
main.go
@@ -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 {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user