Fix UZPLN feed

This commit is contained in:
Lucidiot 2021-02-23 19:02:54 +01:00
parent e2e996d3a5
commit df8971b6f2
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
2 changed files with 5 additions and 5 deletions

View File

@ -400,20 +400,20 @@
<jq path="uzpln.jq">
<arg name="language">en</arg>
<arg name="description">Air Accidents Investigation Institute</arg>
<arg name="link">https://www.uzpln.cz/en/reports</arg>
<arg name="link">https://uzpln.cz/en/reports</arg>
</jq>
<json2xml />
<output>uzpln/en.xml</output>
</feed>
<feed format="rss" lang="English" id="uzpln-cz">
<curl>
<url>https://www.uzpln.cz/cz/zpravy-ln</url>
<url>https://uzpln.cz/zpravy-ln</url>
</curl>
<pup>table.table tbody tr:not(:first-child)</pup>
<jq path="uzpln.jq">
<arg name="language">cz</arg>
<arg name="description">Ústav pro odborné Zjišťování Příčin Leteckých Nehod</arg>
<arg name="link">https://www.uzpln.cz/cz/zpravy-ln</arg>
<arg name="link">https://uzpln.cz/zpravy-ln</arg>
</jq>
<json2xml />
<output>uzpln/cz.xml</output>

View File

@ -20,8 +20,8 @@ import "./helpers" as helpers;
"ttl": 1440,
"generator": "ITSB",
"item": [.[] | {
"title": (.children[4].text + " - " + .children[2].text),
"link": (.children[5].children[0].href|helpers::urlresolve("http://www.uzpln.cz")),
"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"))
}]
}