Remove unused api and realtime
This commit is contained in:
@@ -20,16 +20,16 @@ var dl = ytdlp.New().
|
||||
RecodeVideo("mp4").
|
||||
ConcurrentFragments(4)
|
||||
|
||||
func Download(event PBEvent, status chan error) {
|
||||
_, err := dl.Run(context.TODO(), event.Record.Link)
|
||||
if err != nil {
|
||||
status <- err
|
||||
return
|
||||
}
|
||||
// func Download(event PBEvent, status chan error) {
|
||||
// _, err := dl.Run(context.TODO(), event.Record.Link)
|
||||
// if err != nil {
|
||||
// status <- err
|
||||
// return
|
||||
// }
|
||||
|
||||
log.Printf("Downloaded %s (%s)", event.Record.Id, event.Record.Link)
|
||||
SetDownloaded(event)
|
||||
}
|
||||
// log.Printf("Downloaded %s (%s)", event.Record.Id, event.Record.Link)
|
||||
// SetDownloaded(event)
|
||||
// }
|
||||
|
||||
func DownloadURL(url string, status chan error) {
|
||||
log.Printf("Downloading %s", url)
|
||||
|
||||
Reference in New Issue
Block a user