This commit is contained in:
Gregory Salaun 2023-12-17 21:05:17 +07:00
parent 558d0e9a29
commit 0982141e9b

View File

@ -57,6 +57,7 @@ func main() {
// os.Setenv("radarr_moviefile_sourcepath", "/mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv")
// os.Setenv("radarr_moviefile_sourcefolder", "/mnt/Multimedia/Download/PostProcess/Movies")
// os.Setenv("radarr_eventtype", "Download")
// os.Setenv("EventType", "Test")
ex, err := os.Executable()
if err != nil {
@ -77,7 +78,7 @@ func main() {
if os.Getenv("EventType") == "Test" {
log.Println("Radarr/Sonarr is testing the script and it works")
os.Exit(0)
os.Exit(1)
}
m := &MediaFiles{}