Skip to content

Commit 12694d0

Browse files
committed
add boxSet method.
1 parent 6c0b513 commit 12694d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tv/tv.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@ func (id *iplayerDocument) programPages(selres []*iplayerSelectionResult) []Page
236236
return urls
237237
}
238238

239+
func (id *iplayerDocument) boxSet() []Pager {
240+
var urls []Pager
241+
id.doc.Find(".series-nav__button > a").Each(func(i int, s *goquery.Selection) {
242+
urls = append(urls, BeebURL(s.AttrOr("href", "")))
243+
})
244+
return urls
245+
}
246+
239247
// RelatedLink represents a link entry on a programme's root home page.
240248
// It consists of a title, e.g. IMDB, and the url, e.g.
241249
// https://www.imdb.com/title/tt0146316/?ref_=ttfc_fc_tt

0 commit comments

Comments
 (0)