tiktok-dl/main.go

21 lines
355 B
Go
Raw Normal View History

2020-01-19 02:11:53 +00:00
package main
import (
config "./models/config"
2020-01-21 21:46:30 +00:00
workflows "./workflows"
2020-01-19 02:11:53 +00:00
)
func main() {
config.GetConfig()
url := config.Config.URL
batchFilePath := config.Config.BatchFilePath
// Batch file
if workflows.CanUseDownloadBatchFile(batchFilePath) {
workflows.DownloadBatchFile(batchFilePath)
return
}
2020-01-19 02:11:53 +00:00
workflows.StartWorkflowByParameter(url)
2020-01-19 02:11:53 +00:00
}