t
This commit is contained in:
parent
4e3565b7e9
commit
e571c71bc2
@ -24,12 +24,10 @@ 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.SourcePath)
|
||||||
dir2, _ := path.Split(r.SourcePath)
|
|
||||||
log.Println("dir SourceFolder: " + dir)
|
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