diff --git a/itsb.xml b/itsb.xml index 6fb9f9d..3913c9e 100644 --- a/itsb.xml +++ b/itsb.xml @@ -896,9 +896,9 @@ https://www.zma.go.tz/ - https://www.zma.go.tz/zma_casuality.php + https://www.zma.go.tz/ZMA_Accidents.html - #content2 li a + div[class$="-event"] zma.xml diff --git a/jq/zma.jq b/jq/zma.jq index c3bb108..0a78965 100644 --- a/jq/zma.jq +++ b/jq/zma.jq @@ -9,18 +9,19 @@ import "./helpers" as helpers; "channel": { "title": "ZMA investigation reports", "description": "Zanzibar Maritime Authority accident investigation reports", - "link": "https://www.zma.go.tz/zma_casuality.php", + "link": "https://www.zma.go.tz/ZMA_Accidents.html", "language": "en-tz", "pubDate": (now | strftime("%a, %d %b %Y %T %z")), "docs": "https://www.rssboard.org/rss-specification", "ttl": 1440, "generator": "ITSB", - "item": [.[] | { - "title": .text, - "link": (.href | helpers::urlresolve("https://www.zma.go.tz/zma_casuality.php")), + "item": [.[].children | select(.[0].children[1].href != "#") | { + "title": .[1].text, + "link": (.[0].children[1].href | helpers::urlresolve("https://www.zma.go.tz/ZMA_Accidents.html")), + "description": .[2].text, "guid": { "@isPermaLink": "true", - "#text": (.href | helpers::urlresolve("https://www.zma.go.tz/zma_casuality.php")) + "#text": (.[0].children[1].href | helpers::urlresolve("https://www.zma.go.tz/ZMA_Accidents.html")) } }] }