Add ytdlp binding lib
This commit is contained in:
13
main.go
13
main.go
@@ -48,11 +48,14 @@ func main() {
|
||||
status := make(chan error)
|
||||
for event := range listener.Create {
|
||||
log.Printf("Create event: %+v\n", event)
|
||||
go Download(event, status)
|
||||
// go DownloadNative(event, status)
|
||||
for status := range status {
|
||||
log.Printf("Status: %s\n", status)
|
||||
}
|
||||
eventCopy := event
|
||||
go func() {
|
||||
Download(eventCopy, status)
|
||||
// go DownloadNative(event, status)
|
||||
for status := range status {
|
||||
log.Printf("Status: %s\n", status)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
time.Sleep(1 * time.Hour)
|
||||
|
||||
Reference in New Issue
Block a user