diff --git a/.gitignore b/.gitignore index de81d6a..fca75ac 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ torrent-store client/client .DS_Store -.env \ No newline at end of file +.env +stoplist.yaml \ No newline at end of file diff --git a/services/stoplist.go b/services/stoplist.go index 251c0c4..91cbaaf 100644 --- a/services/stoplist.go +++ b/services/stoplist.go @@ -62,7 +62,11 @@ func (s *Stoplist) getData(b []byte) ([]string, error) { var data []string data = append(data, i.Name) for _, file := range i.Files { - data = append(data, strings.Join(file.PathUtf8, " ")) + path := file.PathUtf8 + if path == nil { + path = file.Path + } + data = append(data, strings.Join(path, " ")) } return data, nil }