mirror of
https://github.com/pikami/tiktok-dl.git
synced 2026-01-09 12:36:30 +00:00
Use go modules
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package workflows
|
||||
|
||||
import (
|
||||
config "../models/config"
|
||||
res "../resources"
|
||||
fileio "../utils/fileio"
|
||||
log "../utils/log"
|
||||
config "github.com/pikami/tiktok-dl/models/config"
|
||||
res "github.com/pikami/tiktok-dl/resources"
|
||||
fileio "github.com/pikami/tiktok-dl/utils/fileio"
|
||||
log "github.com/pikami/tiktok-dl/utils/log"
|
||||
)
|
||||
|
||||
// OnWorkflowFail - Funtion called when workflow fails
|
||||
// OnWorkflowFail - Function called when workflow fails
|
||||
func OnWorkflowFail(err error, workItem string) {
|
||||
failLogFilePath := config.Config.FailLogFilePath
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package workflows
|
||||
|
||||
import (
|
||||
res "../resources"
|
||||
fileio "../utils/fileio"
|
||||
log "../utils/log"
|
||||
res "github.com/pikami/tiktok-dl/resources"
|
||||
fileio "github.com/pikami/tiktok-dl/utils/fileio"
|
||||
log "github.com/pikami/tiktok-dl/utils/log"
|
||||
)
|
||||
|
||||
// CanUseDownloadBatchFile - Check's if DownloadBatchFile can be used
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
client "../client"
|
||||
config "../models/config"
|
||||
utils "../utils"
|
||||
fileio "../utils/fileio"
|
||||
log "../utils/log"
|
||||
client "github.com/pikami/tiktok-dl/client"
|
||||
config "github.com/pikami/tiktok-dl/models/config"
|
||||
utils "github.com/pikami/tiktok-dl/utils"
|
||||
fileio "github.com/pikami/tiktok-dl/utils/fileio"
|
||||
log "github.com/pikami/tiktok-dl/utils/log"
|
||||
)
|
||||
|
||||
// CanUseDownloadHashtag - Test's if this workflow can be used for parameter
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
|
||||
client "../client"
|
||||
config "../models/config"
|
||||
utils "../utils"
|
||||
fileio "../utils/fileio"
|
||||
log "../utils/log"
|
||||
client "github.com/pikami/tiktok-dl/client"
|
||||
config "github.com/pikami/tiktok-dl/models/config"
|
||||
utils "github.com/pikami/tiktok-dl/utils"
|
||||
fileio "github.com/pikami/tiktok-dl/utils/fileio"
|
||||
log "github.com/pikami/tiktok-dl/utils/log"
|
||||
)
|
||||
|
||||
// CanUseDownloadMusic - Check's if DownloadMusic can be used for parameter
|
||||
|
||||
@@ -3,8 +3,8 @@ package workflows
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
client "../client"
|
||||
log "../utils/log"
|
||||
client "github.com/pikami/tiktok-dl/client"
|
||||
log "github.com/pikami/tiktok-dl/utils/log"
|
||||
)
|
||||
|
||||
// CanUseDownloadShareLink - Check's if DownloadShareLink can be used
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
client "../client"
|
||||
config "../models/config"
|
||||
utils "../utils"
|
||||
fileio "../utils/fileio"
|
||||
log "../utils/log"
|
||||
client "github.com/pikami/tiktok-dl/client"
|
||||
config "github.com/pikami/tiktok-dl/models/config"
|
||||
utils "github.com/pikami/tiktok-dl/utils"
|
||||
fileio "github.com/pikami/tiktok-dl/utils/fileio"
|
||||
log "github.com/pikami/tiktok-dl/utils/log"
|
||||
)
|
||||
|
||||
// CanUseDownloadUser - Test's if this workflow can be used for parameter
|
||||
|
||||
@@ -4,12 +4,12 @@ import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
|
||||
client "../client"
|
||||
models "../models"
|
||||
config "../models/config"
|
||||
utils "../utils"
|
||||
fileio "../utils/fileio"
|
||||
log "../utils/log"
|
||||
client "github.com/pikami/tiktok-dl/client"
|
||||
models "github.com/pikami/tiktok-dl/models"
|
||||
config "github.com/pikami/tiktok-dl/models/config"
|
||||
utils "github.com/pikami/tiktok-dl/utils"
|
||||
fileio "github.com/pikami/tiktok-dl/utils/fileio"
|
||||
log "github.com/pikami/tiktok-dl/utils/log"
|
||||
)
|
||||
|
||||
// CanUseDownloadSingleVideo - Check's if DownloadSingleVideo can be used for parameter
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package workflows
|
||||
|
||||
import (
|
||||
config "../models/config"
|
||||
res "../resources"
|
||||
utils "../utils"
|
||||
log "../utils/log"
|
||||
config "github.com/pikami/tiktok-dl/models/config"
|
||||
res "github.com/pikami/tiktok-dl/resources"
|
||||
utils "github.com/pikami/tiktok-dl/utils"
|
||||
log "github.com/pikami/tiktok-dl/utils/log"
|
||||
)
|
||||
|
||||
// StartWorkflowByParameter - Start needed workflow by given parameter
|
||||
|
||||
Reference in New Issue
Block a user