update scraping logic to handle new style cbox pages and new unified dateformat
This commit is contained in:
1 parent
7ebc9d5acc
commit
a7d0094a08
5 files changed
+183
-57
No files matched your search
+3
-1
@@ -12,6 +12,8 @@ type Message struct {
|
||||
Message string
|
||||
}
|
||||
|
||||
const DisplayDatetimeFormat = "2006-01-02 03:04PM"
|
||||
|
||||
func (m *Message) String() string {
|
||||
return fmt.Sprintf("#%d [%s] <%s> %s", m.MessageID, m.DateTime.Format(DatetimeFormat), m.Username, m.Message)
|
||||
return fmt.Sprintf("#%d [%s] <%s> %s", m.MessageID, m.DateTime.Format(DisplayDatetimeFormat), m.Username, m.Message)
|
||||
}
|
||||
Reference in new issue
Block a user