Makes album getter test pass

This commit is contained in:
2016-01-20 13:47:43 +01:00
parent bc0e3a392b
commit c215dcb849
3 changed files with 36 additions and 5 deletions

View File

@@ -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
}()