From 677be1997bbba7e5257328200ee36bc4c887557a Mon Sep 17 00:00:00 2001 From: Lucidiot Date: Tue, 23 Feb 2021 19:23:58 +0100 Subject: [PATCH] Fix TSIB feeds --- itsb.xml | 4 ++-- jq/tsib.jq | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/itsb.xml b/itsb.xml index 3d564af..b37b65b 100644 --- a/itsb.xml +++ b/itsb.xml @@ -621,7 +621,7 @@ https://www.mot.gov.sg/about-mot/transport-safety-investigation-bureau/msib/investigation-report/ - .container-twelve .eight > .row:last-child tbody > tr + .safety-investigation-report table tbody tr Marine https://www.mot.gov.sg/about-mot/transport-safety-investigation-bureau/msib/investigation-report/ @@ -633,7 +633,7 @@ https://www.mot.gov.sg/about-mot/transport-safety-investigation-bureau/aaib/investigation-report/ - .container-twelve .eight > .row:last-child tbody > tr + .safety-investigation-report table tbody tr Aviation https://www.mot.gov.sg/about-mot/transport-safety-investigation-bureau/aaib/investigation-report/ diff --git a/jq/tsib.jq b/jq/tsib.jq index 5bff22d..54e317a 100644 --- a/jq/tsib.jq +++ b/jq/tsib.jq @@ -21,6 +21,7 @@ import "./helpers" as helpers; "item": [.[] | { "title": ((.children[3].children[0].text | .[:index(" (PDF")]) + " - " + .children[2].text), "link": (.children[3].children[0].href | helpers::urlresolve($link)), + "guid": (.children[3].children[0].href | helpers::urlresolve($link)), "pubDate": (.children[0].text | strptime("%d %b %Y") | mktime | strftime("%a, %d %b %Y %T %z")) }] }