Updated MAL tools

This commit is contained in:
2018-11-01 00:04:47 +09:00
parent c5d05726fe
commit 83926804fc
2 changed files with 12 additions and 14 deletions
jobs
mal-download
mal-parse

@ -28,6 +28,10 @@ var headers = map[string]string{
func main() {
defer color.Green("Finished.")
// Create directories in case they're missing
os.Mkdir(animeDirectory, 0777)
os.Mkdir(characterDirectory, 0777)
// Called with arguments?
if InvokeShellArgs() {
return
@ -45,9 +49,6 @@ func main() {
// Sort so that we download the most important ones first
arn.SortAnimeByQuality(animes)
// Create anime directory if it's missing
os.Mkdir(animeDirectory, 0777)
}
// Filter characters with MAL ID
@ -62,9 +63,6 @@ func main() {
// Sort so that we download the most important ones first
arn.SortCharactersByLikes(characters)
// Create character directory if it's missing
os.Mkdir(characterDirectory, 0777)
}
// We don't need the database anymore