Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da38522dc3 | ||
|
|
5daa95058d | ||
|
|
e4ede9c4e1 |
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 {
|
||||
|
||||
BIN
youtubedl/.client.go.un~
Normal file
BIN
youtubedl/.client.go.un~
Normal file
Binary file not shown.
@@ -49,7 +49,7 @@ func (c *Client) Download(video, local string) error {
|
||||
return err
|
||||
}
|
||||
cmd := exec.Command(
|
||||
"bash",
|
||||
"/bin/sh",
|
||||
"-c",
|
||||
fmt.Sprintf(
|
||||
"true; python3 -m vtt_to_srt %q || python3 /usr/bin/vtt_to_srt.py %q",
|
||||
|
||||
@@ -42,7 +42,7 @@ func installPyPip3FFMPEG() error {
|
||||
if err == 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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user