blob: 95589b36de3d4393ea577d6701239cc8f694abc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|