mirror of
https://github.com/pikami/tiktok-dl.git
synced 2024-11-28 18:55:42 +00:00
1b3f985f42
Added `-quiet` flag Move out error messages to separate file
21 lines
355 B
Go
21 lines
355 B
Go
package main
|
|
|
|
import (
|
|
config "./models/config"
|
|
workflows "./workflows"
|
|
)
|
|
|
|
func main() {
|
|
config.GetConfig()
|
|
url := config.Config.URL
|
|
batchFilePath := config.Config.BatchFilePath
|
|
|
|
// Batch file
|
|
if workflows.CanUseDownloadBatchFile(batchFilePath) {
|
|
workflows.DownloadBatchFile(batchFilePath)
|
|
return
|
|
}
|
|
|
|
workflows.StartWorkflowByParameter(url)
|
|
}
|