first commit
This commit is contained in:
commit
dd378cb17d
24
DeleteArr.go
Normal file
24
DeleteArr.go
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
|
||||||
|
f, err := os.OpenFile("./log.txt", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("error opening file: %v", err)
|
||||||
|
}
|
||||||
|
defer f.Close()
|
||||||
|
|
||||||
|
log.SetOutput(f)
|
||||||
|
|
||||||
|
EventType := os.Getenv("radarr_eventtype")
|
||||||
|
log.Println(EventType)
|
||||||
|
SourcePath := os.Getenv("radarr_moviefile_sourcepath")
|
||||||
|
log.Println(SourcePath)
|
||||||
|
SourceFolder := os.Getenv("radarr_moviefile_sourcefolder")
|
||||||
|
log.Println(SourceFolder)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user