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