2020-01-19 04:11:53 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-04-12 03:22:00 +03:00
|
|
|
config "github.com/pikami/tiktok-dl/models/config"
|
|
|
|
workflows "github.com/pikami/tiktok-dl/workflows"
|
2020-01-19 04:11:53 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2020-02-08 01:51:17 +02:00
|
|
|
config.GetConfig()
|
|
|
|
url := config.Config.URL
|
|
|
|
batchFilePath := config.Config.BatchFilePath
|
2020-01-24 19:02:50 +02:00
|
|
|
|
|
|
|
// Batch file
|
|
|
|
if workflows.CanUseDownloadBatchFile(batchFilePath) {
|
|
|
|
workflows.DownloadBatchFile(batchFilePath)
|
|
|
|
return
|
|
|
|
}
|
2020-01-19 04:11:53 +02:00
|
|
|
|
2020-01-26 19:44:25 +02:00
|
|
|
workflows.StartWorkflowByParameter(url)
|
2020-01-19 04:11:53 +02:00
|
|
|
}
|