remove relative paths

This commit is contained in:
filifa 2024-07-26 19:51:21 -05:00
parent 59f0bab154
commit ec50497d3f
2 changed files with 4 additions and 4 deletions

View File

@ -29,11 +29,11 @@ then
exit 1
fi
gamePk=$(./livepk.sh -t $team)
gamePk=$(livepk.sh -t $team)
if [[ -z $gamePk || "$gamePk" = 'null' ]]
then
exit 1
fi
jqFilter='.highlights.highlights.items | map(select(.keywordsAll[].value == "highlight"))[] | {headline, id} + {url: (.playbacks | map(select(.name == "mp4Avc"))[0].url)}'
mlblive content -g $gamePk | jq -Sc --unbuffered "$jqFilter" | sed -u 's/$/0/' | ./writedb.sh -d $db -t highlights -c ''
mlblive content -g $gamePk | jq -Sc --unbuffered "$jqFilter" | sed -u 's/$/0/' | writedb.sh -d $db -t highlights -c ''

View File

@ -29,11 +29,11 @@ then
exit 1
fi
gamePk=$(./livepk.sh -t $team)
gamePk=$(livepk.sh -t $team)
if [[ -z $gamePk || "$gamePk" = 'null' ]]
then
exit 1
fi
jqFilter='{gamePk} + (.gameData.teams | {awayTeam: .away.teamName, homeTeam: .home.teamName}) + (.liveData.plays.allPlays[] | (.result + (.about | {atBatIndex, halfInning, inning, isComplete, isScoringPlay, hasReview})))'
mlblive subscribe -g $gamePk | jq -Sc --unbuffered "$jqFilter" | sed -u 's/$/0/' | ./writedb.sh -d $db -t playinfo -c ''
mlblive subscribe -g $gamePk | jq -Sc --unbuffered "$jqFilter" | sed -u 's/$/0/' | writedb.sh -d $db -t playinfo -c ''