Refactor downloaders to separate package to utilize an interface
This commit is contained in:
11
downloader/downloaders/utils.go
Normal file
11
downloader/downloaders/utils.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package downloaders
|
||||
|
||||
import "sync"
|
||||
|
||||
//const OUTPUT_DIR = "C:/Users/Administrator/ytdlpVideos"
|
||||
const OUTPUT_DIR = "."
|
||||
|
||||
var ongoingDownloads = make(map[string]struct{})
|
||||
var ongoingDownloadsMutex = &sync.Mutex{}
|
||||
|
||||
const DOWNLOAD_WORKERS = 1
|
||||
Reference in New Issue
Block a user