u
This commit is contained in:
parent
74b881ae78
commit
4e3565b7e9
@ -25,8 +25,11 @@ type SonarrSerie struct {
|
|||||||
func (r *RadarrMovie) IsInFolder() {
|
func (r *RadarrMovie) IsInFolder() {
|
||||||
folderList := []string{"Movies", "4K-Movies"}
|
folderList := []string{"Movies", "4K-Movies"}
|
||||||
dir, _ := path.Split(r.SourceFolder)
|
dir, _ := path.Split(r.SourceFolder)
|
||||||
log.Println(dir)
|
dir2, _ := path.Split(r.SourcePath)
|
||||||
|
log.Println("dir SourceFolder: " + dir)
|
||||||
|
log.Println("dir2 sourcePath: " + dir2)
|
||||||
ContainsFolder := slices.Contains(folderList, dir)
|
ContainsFolder := slices.Contains(folderList, dir)
|
||||||
|
log.Println(ContainsFolder)
|
||||||
|
|
||||||
if ContainsFolder {
|
if ContainsFolder {
|
||||||
r.InFolder = true
|
r.InFolder = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user