diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2016-05-05 13:57:00 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2016-05-05 13:57:00 +0200 |
commit | 7c6778e41101a339690eaae0501210b5b637d39f (patch) | |
tree | b1324b9d321974d4771a03b5eef7c8c3aae7dacb /fixitems.sh | |
download | videobot_enricheuroparl-7c6778e41101a339690eaae0501210b5b637d39f.tar.gz videobot_enricheuroparl-7c6778e41101a339690eaae0501210b5b637d39f.tar.bz2 videobot_enricheuroparl-7c6778e41101a339690eaae0501210b5b637d39f.zip |
Diffstat (limited to 'fixitems.sh')
-rwxr-xr-x | fixitems.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fixitems.sh b/fixitems.sh new file mode 100755 index 0000000..653bb2d --- /dev/null +++ b/fixitems.sh @@ -0,0 +1,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 + |