From ef5f832ef5b9f171a8893ba684e93d7e1a49a61d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 30 Sep 2022 10:03:56 +0200 Subject: import-kirchenmusik neu --- import-kirchenmusik | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 import-kirchenmusik diff --git a/import-kirchenmusik b/import-kirchenmusik new file mode 100755 index 0000000..95589b3 --- /dev/null +++ b/import-kirchenmusik @@ -0,0 +1,17 @@ +#!/bin/bash + +printf '%s %s %s\n' \ + 'oratorienchor' 'Erich' '' \ + 'thueringer-saengerknaben' 'Familie' 'K: ' \ +| while read -r Chor Kalender Extra; do + curl -Ss 'https://kirchenmusik-saalfeld.de/termine-dienste/'"${Chor}"'/' \ + | grep '^\[{"@context":"http://schema.org"' \ + | jq -cr '.[].url' \ + | while read -r url; do + curl -Ss "${url%/}/?ical=1" \ + | sed ' + s@^SUMMARY:@\0'"${Extra}"'@ + ' \ + | khal import -a "${Kalender}" --batch + done +done -- cgit v1.2.3-70-g09d2