Closed Captions / Subtitles for Vintage Story.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Also report missing language entries.

+12 -4
+12 -4
report-missing.sh
··· 1 1 #!/usr/bin/env fish 2 - argparse 'd/domain=' -- $argv 2 + argparse 'd/domain=' 'l/language=' -- $argv 3 3 or return 4 4 5 + set -l language "en" 6 + set -ql _flag_language 7 + and set language $_flag_language 8 + 5 9 set -l domain "survival" 6 - set -ql _flat_domain 7 - and set domain $_flat_domain 10 + set -ql _flag_domain 11 + and set domain $_flag_domain 8 12 9 13 set -l asset_directory "/Applications/Vintage Story.app/assets/"$domain"/sounds/" 14 + set -l lang_file "ClosedCaptions/assets/captions/lang/"$language".json" 10 15 set -l data_file "ClosedCaptions/assets/captions/captions/"$domain".json" 11 16 12 17 stat $asset_directory >/dev/null ··· 19 24 # Reformat key to strip numbers. 20 25 set clean_key (string replace -r '[/\d_-]+$' "" $key) 21 26 if not jq -e '.["'$clean_key'"]' $data_file >/dev/null 22 - echo $clean_key is missing. 27 + echo $clean_key" has no metadata in "$domain".json" 28 + end 29 + if not jq -e '.["captions:'$clean_key'"]' $lang_file >/dev/null 30 + echo $clean_key" has no language data in "$language".json" 23 31 end 24 32 end | sort | uniq