Refactor downloaders to separate package to utilize an interface

This commit is contained in:
2024-11-24 19:31:25 +01:00
parent f639545e9b
commit 83f7676b2e
7 changed files with 50 additions and 29 deletions

View 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