add more image urls
This commit is contained in:
parent
0b97f282e2
commit
3a076998f9
5 changed files with 74 additions and 75 deletions
|
@ -20,6 +20,7 @@ type HumbleBundleStruct struct {
|
|||
}
|
||||
|
||||
func NewHumbleBundleApi(logger *slog.Logger) HumbleBundleStruct {
|
||||
// TODO: does this still work and if yes, get image
|
||||
humbleBundle := HumbleBundleStruct{
|
||||
url: "https://www.humblebundle.com/",
|
||||
baseUrl: "https://www.humblebundle.com/store/",
|
||||
|
@ -80,7 +81,7 @@ func (e HumbleBundleStruct) Load() error {
|
|||
return nil
|
||||
case tt == html.StartTagToken:
|
||||
t := bodyStore.Token()
|
||||
if t.Data != "script" {
|
||||
if t.Data != "script" { // only <script> tag
|
||||
continue
|
||||
}
|
||||
for _, a := range t.Attr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue