This commit is contained in:
Matt Burchett
2018-11-20 13:50:47 -06:00
parent b6b5814588
commit b175b02b87
3 changed files with 140 additions and 11 deletions

View File

@ -2,6 +2,7 @@ package main
import (
"flag"
"fmt"
"log"
"git.linuxrocker.com/mattburchett/Housekeeper/pkg/communicator"
@ -48,18 +49,17 @@ func main() {
}
}
files := eraser.LookupTVFileLocation(cfg, ids)
fmt.Printf("%v\n", files)
if delete {
if libraryType == "movie" {
files := eraser.LookupFileLocation(cfg, ids)
files := eraser.LookupMovieFileLocation(cfg, ids)
err = eraser.DeleteMovies(delete, files)
if err != nil {
log.Println(err)
}
// } else if libraryType == "show" {
// err = eraser.DeleteTVShows()
// if err != nil {
// log.Println(err)
// }
} else if libraryType == "show" {
}
}
}