Fix UZPLN columns
This commit is contained in:
parent
6c11d44c2d
commit
21e668e21d
4
itsb.xml
4
itsb.xml
|
@ -465,7 +465,7 @@
|
|||
</curl>
|
||||
<pup>table.table tbody tr:not(:first-child)</pup>
|
||||
<jq path="uzpln.jq">
|
||||
<arg name="language">en</arg>
|
||||
<arg name="language">en-CZ</arg>
|
||||
<arg name="description">Air Accidents Investigation Institute</arg>
|
||||
<arg name="link">https://uzpln.cz/en/reports</arg>
|
||||
</jq>
|
||||
|
@ -478,7 +478,7 @@
|
|||
</curl>
|
||||
<pup>table.table tbody tr:not(:first-child)</pup>
|
||||
<jq path="uzpln.jq">
|
||||
<arg name="language">cz</arg>
|
||||
<arg name="language">cz-CZ</arg>
|
||||
<arg name="description">Ústav pro odborné Zjišťování Příčin Leteckých Nehod</arg>
|
||||
<arg name="link">https://uzpln.cz/zpravy-ln</arg>
|
||||
</jq>
|
||||
|
|
10
jq/uzpln.jq
10
jq/uzpln.jq
|
@ -20,9 +20,13 @@ import "./helpers" as helpers;
|
|||
"ttl": 1440,
|
||||
"generator": "ITSB",
|
||||
"item": [.[] | {
|
||||
"title": ("\(.children[2].text) - \(.children[3].text) - \(.children[5].text)" + (if .children[1].text then " (\(.children[1].text))" else "" end)),
|
||||
"link": (.children[-1].children[0].href | helpers::urlresolve("http://www.uzpln.cz")),
|
||||
"pubDate": (.children[0].text | strptime("%Y-%m-%d") | mktime | strftime("%a, %d %b %Y %T %z"))
|
||||
"title": ("\(.children[3].text) - \(.children[4].text) - \(.children[6].text)" + (if .children[2].text then " (\(.children[2].text))" else "" end)),
|
||||
"link": (.children[-1].children[0].href | helpers::urlresolve($link)),
|
||||
"pubDate": (.children[1].text | strptime("%Y-%m-%d") | mktime | strftime("%a, %d %b %Y %T %z")),
|
||||
"category": [
|
||||
{"@domain": $link, "#text": .children[0].text},
|
||||
{"@domain": $link, "#text": .children[5].text}
|
||||
]
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue