feat: add --override flag

This commit is contained in:
2026-02-28 16:39:51 +01:00
parent 420429112a
commit 9d8a9538be
3 changed files with 7 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ type App struct {
ApiInterval int // How many ms to wait between one call to apis and the other
NoFallback bool
StopOnFail bool
OverrideDownload bool
}
func NewApp() App {

View File

@@ -199,7 +199,7 @@ func (app *App) DownloadTrack(url string, outputFile string, service string, qua
return err
}
if fileExists {
if fileExists && !app.OverrideDownload {
app.log("File " + outputFile + " already exists")
return nil
}