Prefix rss items with date for temporal loading
This commit is contained in:
@@ -31,7 +31,7 @@ func (item *Item) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (item *Item) ID() string {
|
func (item *Item) ID() string {
|
||||||
return strings.Join(regexp.MustCompile("[a-zA-Z0-9]*").FindAllString(item.Link, -1), "_")
|
return item.TS.UTC().Format("20060102_") + strings.Join(regexp.MustCompile("[a-zA-Z0-9]*").FindAllString(item.Link, -1), "_")
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeserializeItem(src []byte) (*Item, error) {
|
func DeserializeItem(src []byte) (*Item, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user