t
This commit is contained in:
parent
d2bc5ed773
commit
7e096922a3
19
DeleteArr.go
19
DeleteArr.go
@ -42,9 +42,9 @@ func (r *RadarrMovie) IsInFolder() {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
os.Setenv("radarr_moviefile_sourcepath", "/mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv")
|
// os.Setenv("radarr_moviefile_sourcepath", "/mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv")
|
||||||
os.Setenv("radarr_moviefile_sourcefolder", "/mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW")
|
// os.Setenv("radarr_moviefile_sourcefolder", "/mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW")
|
||||||
os.Setenv("radarr_eventtype", "Download")
|
// os.Setenv("radarr_eventtype", "Download")
|
||||||
|
|
||||||
ex, err := os.Executable()
|
ex, err := os.Executable()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -74,7 +74,20 @@ func main() {
|
|||||||
r.IsInFolder()
|
r.IsInFolder()
|
||||||
|
|
||||||
if r.InFolder {
|
if r.InFolder {
|
||||||
|
f, err := os.Open(r.SourceFolder)
|
||||||
|
if err != nil {
|
||||||
|
log.Println(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
files, err := f.Readdir(0)
|
||||||
|
if err != nil {
|
||||||
|
log.Println(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, v := range files {
|
||||||
|
log.Println(v.Name(), v.IsDir())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
18
log.txt
18
log.txt
@ -8,3 +8,21 @@
|
|||||||
2023/12/17 17:10:33 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW
|
2023/12/17 17:10:33 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW
|
||||||
2023/12/17 17:10:33 dir SourceFolder: /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/
|
2023/12/17 17:10:33 dir SourceFolder: /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/
|
||||||
2023/12/17 17:10:33 Movie /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW is in a Folder
|
2023/12/17 17:10:33 Movie /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW is in a Folder
|
||||||
|
2023/12/17 17:13:04 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv
|
||||||
|
2023/12/17 17:13:04 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW
|
||||||
|
2023/12/17 17:13:12 Movie /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW is in a Folder
|
||||||
|
2023/12/17 17:16:01 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv
|
||||||
|
2023/12/17 17:16:01 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW
|
||||||
|
2023/12/17 17:16:01 Movie /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW is in a Folder
|
||||||
|
2023/12/17 17:16:01 open /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv: The system cannot find the path specified.
|
||||||
|
2023/12/17 17:16:16 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv
|
||||||
|
2023/12/17 17:16:16 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW
|
||||||
|
2023/12/17 17:16:16 Movie /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW is in a Folder
|
||||||
|
2023/12/17 17:16:16 open /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv: The system cannot find the path specified.
|
||||||
|
2023/12/17 17:16:28 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv
|
||||||
|
2023/12/17 17:16:28 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW
|
||||||
|
2023/12/17 17:16:28 Movie /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW is in a Folder
|
||||||
|
2023/12/17 17:17:07 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW.mkv
|
||||||
|
2023/12/17 17:17:07 /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW
|
||||||
|
2023/12/17 17:17:07 Movie /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW is in a Folder
|
||||||
|
2023/12/17 17:17:14 open /mnt/Multimedia/Download/PostProcess/Movies/Butchers.Crossing.2023.MULTi.1080p.WEB.x264-FW: The system cannot find the path specified.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user