splitting out the eraser model from the locator model, adding library type logic.

This commit is contained in:
Matt Burchett
2018-11-20 12:20:20 -06:00
parent 3e5695a802
commit 81797f66ca
5 changed files with 207 additions and 138 deletions

View File

@@ -21,9 +21,6 @@ func LookupFileLocation(config config.Config, ids []int) []string {
plexURL := fmt.Sprintf("%s:%d%s%d%s%s", config.PlexHost, config.PlexPort, "/library/metadata/", i, "/?X-Plex-Token=", config.PlexToken)
req, err := http.NewRequest(http.MethodGet, plexURL, nil)
if err != nil {
log.Fatal(err)
}
httpClient := http.Client{}
req.Header.Set("User-Agent", "Housekeeper")