summaryrefslogtreecommitdiff
path: root/import-kirchenmusik
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-09-30 10:03:56 +0200
committerErich Eckner <git@eckner.net>2022-09-30 10:03:56 +0200
commitef5f832ef5b9f171a8893ba684e93d7e1a49a61d (patch)
tree00fdcbd898b8255fdba3260dbdca960eca6220ff /import-kirchenmusik
parent7e1d649fad1b62be9777fcbc40d1519b8e388ba2 (diff)
downloadkhal-extras-ef5f832ef5b9f171a8893ba684e93d7e1a49a61d.tar.xz
import-kirchenmusik neu
Diffstat (limited to 'import-kirchenmusik')
-rwxr-xr-ximport-kirchenmusik17
1 files changed, 17 insertions, 0 deletions
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