This commit is contained in:
parent
379acf872e
commit
1fcbdf9d09
|
@ -22,10 +22,12 @@ import "./helpers" as helpers;
|
|||
"item": [
|
||||
.[]
|
||||
# Parse the HTML popup content to extract the link and description
|
||||
| .popup |= capture("^<a href=\"(?<link>[^\"]*)\">.*</a>(?<description>.*)$")
|
||||
| .popup |= capture("^<a href=\"(?<link>[^\"]*)\">.*</a>(?<description>.*)$"; "m")
|
||||
# Make the URL absolute
|
||||
| .popup.link |= helpers::urlresolve("https://skybrary.aero/accidents-map")
|
||||
| {
|
||||
"title": .label,
|
||||
"link": (.popup.link | helpers::urlresolve("https://skybrary.aero/accidents-map")),
|
||||
"link": .popup.link,
|
||||
"description": .popup.description,
|
||||
"guid": {
|
||||
"@isPermaLink": "true",
|
||||
|
|
Loading…
Reference in New Issue