test
This commit is contained in:
parent
91c2214082
commit
8997e6ae1a
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
|
||||
"git.linuxrocker.com/mattburchett/Housekeeper/pkg/config"
|
||||
"git.linuxrocker.com/mattburchett/Housekeeper/pkg/model"
|
||||
@ -76,9 +77,12 @@ func LookupTVFileLocation(config config.Config, ids []int) []string {
|
||||
plexTV := plexModel.Video
|
||||
|
||||
for _, i := range plexTV {
|
||||
count := sort.SearchStrings(fileList, i.Media.Part.File)
|
||||
if count == 0 {
|
||||
fileList = append(fileList, filepath.Dir(filepath.Dir(i.Media.Part.File)))
|
||||
}
|
||||
}
|
||||
}
|
||||
return fileList
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user