File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 169169[[ -n " ${TERMV_LANGUAGE} " ]] && echo " Chosen language: $TERMV_LANGUAGE " && TERMV_FILTER=" $TERMV_FILTER | select(.languages[0].name == \" $TERMV_LANGUAGE \" )"
170170[[ -n " ${TERMV_COUNTRY} " ]] && echo " Chosen country: $TERMV_COUNTRY " && TERMV_FILTER=" $TERMV_FILTER | select(.countries[0].name == \" $TERMV_COUNTRY \" )"
171171
172- [ " ${TERMV_AUTO_UPDATE} " = true ] && { [ ! " $( stat -c %y " ${TERMV_CACHE_DIR:? } /channels_data.json" 2> /dev/null | cut -d' ' -f1) " = " $( date ' +%Y-%m-%d' ) " ] && update_channelsfile ; }
173- [ " ${TERMV_AUTO_UPDATE} " = true ] && { [ ! " $( stat -c %y " ${TERMV_CACHE_DIR:? } /streams_data.json" 2> /dev/null | cut -d' ' -f1) " = " $( date ' +%Y-%m-%d' ) " ] && update_streamsfiles ; }
172+ [ " ${TERMV_AUTO_UPDATE} " = true ] && { [ ! " $( stat -c %y " ${TERMV_CACHE_DIR:? } /channels_data.json" 2> /dev/null | cut -d' ' -f1) " = " $( date ' +%Y-%m-%d' ) " ] && update_jsonfiles ; }
173+ [ " ${TERMV_AUTO_UPDATE} " = true ] && { [ ! " $( stat -c %y " ${TERMV_CACHE_DIR:? } /streams_data.json" 2> /dev/null | cut -d' ' -f1) " = " $( date ' +%Y-%m-%d' ) " ] && update_jsonfiles ; }
174174
175175
176176CHANNELS_LIST=$( jq -r " .[] $TERMV_FILTER | \" \(.name) \t \(.categories[]? // \" N/A\" ) \t \(.languages[]? // \" N/A\" ) \t \(.country? // \" N/A\" ) \t \(.url)\" " " ${TERMV_CACHE_DIR:? } /data.json" | \
You can’t perform that action at this time.
0 commit comments