Added shell parameters to MAL jobs

This commit is contained in:
2018-04-12 19:05:05 +02:00
parent 87b11eb50d
commit c60c171a2f
4 changed files with 84 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"os"
"path"
"path/filepath"
"strings"
@ -21,9 +22,12 @@ func main() {
defer color.Green("Finished.")
defer arn.Node.Close()
// readFile("../mal-download/files/anime-31240.html")
// Invoke via parameters
if InvokeShellArgs() {
return
}
filepath.Walk("../mal-download/files", func(name string, info os.FileInfo, err error) error {
filepath.Walk(path.Join(arn.Root, "jobs/mal-download/files"), func(name string, info os.FileInfo, err error) error {
if err != nil {
fmt.Println(err)
return err