Test
This commit is contained in:
12
cmd/main.go
12
cmd/main.go
@ -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" {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user