Fix UZPLN columns

This commit is contained in:
Lucidiot 2022-05-10 10:16:21 +02:00
parent 6c11d44c2d
commit 21e668e21d
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
2 changed files with 9 additions and 5 deletions

View File

@ -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>

View File

@ -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}
]
}]
}
}