update name of mlbstats

This commit is contained in:
filifa
2025-05-11 19:55:01 -04:00
parent 120604c131
commit a9fe0fbad6
4 changed files with 6 additions and 6 deletions

View File

@@ -33,4 +33,4 @@ fi
# grab select data from response with jq, add 0 to the end of each line (to go
# in the 'posted' db column), then write each line to db
jqFilter='.highlights.highlights.items | map(select(.keywordsAll[].value == "highlight"))[] | {headline, id} + {url: (.playbacks | map(select(.name == "mp4Avc"))[0].url)} | select(.url | startswith("https://mlb-cuts-diamond"))'
mlblive content -g $gamePk | jq -Sc "$jqFilter" | sed 's/$/0/' | sqlite3 $db '.mode ascii' '.separator  \n' '.import /dev/stdin highlights'
mlbstats content -g $gamePk | jq -Sc "$jqFilter" | sed 's/$/0/' | sqlite3 $db '.mode ascii' '.separator  \n' '.import /dev/stdin highlights'