summaryrefslogtreecommitdiff
path: root/fixitems.sh
blob: 653bb2dc33b1f6cfb2ec181a36b7f47a459fdbb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Example script fixing all videobot europarl items by adding descriptions,
# subtitles and raw json data. Modify as needed.

ia search -i 'collection:archiveteam_videobot subject:plenary' | while read -r ident; do
	echo "$ident"
	./videobot_enricheuroparl.py "$ident" || exit 1
	# ia metadata -m "description:`cat "${ident}.html"`" "$ident"
	# ia upload "$ident" "${ident}.json" "${ident}.vtt"
done