Add GUIDs and fix date handling on ATSB
This commit is contained in:
parent
c6437afc86
commit
1022b7b2da
|
@ -19,7 +19,13 @@ import "./helpers" as helpers;
|
|||
"title": .children[0].children[0].text,
|
||||
"description": .children[1].text,
|
||||
"link": (.children[0].children[0].href|helpers::urlresolve("https://www.atsb.gov.au")),
|
||||
"pubDate": (try (.children[4].text | strptime("%d %b %Y") | mktime | strftime("%a, %d %b %Y %T %z")))
|
||||
"guid": (.children[0].children[0].href|helpers::urlresolve("https://www.atsb.gov.au")),
|
||||
"pubDate": (
|
||||
if .children[4].text == "N/A" then .children[2].text else .children[4].text end
|
||||
| strptime("%d %b %Y")
|
||||
| mktime
|
||||
| strftime("%a, %d %b %Y %T %z")
|
||||
)
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue