Makes album getter test pass
This commit is contained in:
@@ -119,7 +119,10 @@ func (g *AlbumDescriptionGetter) Get(a *Album) error {
|
||||
return
|
||||
}
|
||||
for _, s := range sList {
|
||||
a.Scenarist = append(a.Scenarist, linkFromSelection(s.Find("a")))
|
||||
l := linkFromSelection(s.Find("a"))
|
||||
if len(l.Title) > 0 {
|
||||
a.Scenarist = append(a.Scenarist, l)
|
||||
}
|
||||
}
|
||||
errors <- nil
|
||||
}()
|
||||
@@ -132,7 +135,10 @@ func (g *AlbumDescriptionGetter) Get(a *Album) error {
|
||||
return
|
||||
}
|
||||
for _, s := range sList {
|
||||
a.Designer = append(a.Designer, linkFromSelection(s.Find("a")))
|
||||
l := linkFromSelection(s.Find("a"))
|
||||
if len(l.Title) > 0 {
|
||||
a.Designer = append(a.Designer, l)
|
||||
}
|
||||
}
|
||||
errors <- nil
|
||||
}()
|
||||
@@ -145,7 +151,10 @@ func (g *AlbumDescriptionGetter) Get(a *Album) error {
|
||||
return
|
||||
}
|
||||
for _, s := range sList {
|
||||
a.Colorist = append(a.Colorist, linkFromSelection(s.Find("a")))
|
||||
l := linkFromSelection(s.Find("a"))
|
||||
if len(l.Title) > 0 {
|
||||
a.Colorist = append(a.Colorist, l)
|
||||
}
|
||||
}
|
||||
errors <- nil
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user