Fix UZPLN feed
This commit is contained in:
parent
e2e996d3a5
commit
df8971b6f2
6
itsb.xml
6
itsb.xml
|
@ -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>
|
||||
|
|
|
@ -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"))
|
||||
}]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue