Skip to content

Commit b548ffa

Browse files
committed
update scraping for new forum HTML
1 parent f3a9d34 commit b548ffa

File tree

2 files changed

+112
-126
lines changed

2 files changed

+112
-126
lines changed

server/forum_indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (indexer *ForumIndexer) index(poster string, timezone *time.Location) {
210210
}
211211

212212
func ScrapeForumTimezone(doc *goquery.Document) (*time.Location, error) {
213-
sel := doc.Find("#timezone option[selected]")
213+
sel := doc.Find(`select[name="preferences[timezone]"] option[selected]`)
214214
if sel == nil || sel.AttrOr("value", "") == "" {
215215
return nil, errors.New("unable to find timezone selection")
216216
}

0 commit comments

Comments
 (0)