remove feed hacks from storage
This commit is contained in:
parent
9919d72be0
commit
144fc1606a
5 changed files with 6 additions and 28 deletions
|
|
@ -46,7 +46,7 @@ func ParseJSON(data io.Reader) (*Feed, error) {
|
|||
}
|
||||
for _, srcitem := range srcfeed.Items {
|
||||
dstfeed.Items = append(dstfeed.Items, Item{
|
||||
GUID: srcitem.ID,
|
||||
GUID: firstNonEmpty(srcitem.ID, srcitem.URL),
|
||||
Date: dateParse(firstNonEmpty(srcitem.DatePublished, srcitem.DateModified)),
|
||||
URL: srcitem.URL,
|
||||
Title: srcitem.Title,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue