File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 169
169
[[ -n " ${TERMV_LANGUAGE} " ]] && echo " Chosen language: $TERMV_LANGUAGE " && TERMV_FILTER=" $TERMV_FILTER | select(.languages[0].name == \" $TERMV_LANGUAGE \" )"
170
170
[[ -n " ${TERMV_COUNTRY} " ]] && echo " Chosen country: $TERMV_COUNTRY " && TERMV_FILTER=" $TERMV_FILTER | select(.countries[0].name == \" $TERMV_COUNTRY \" )"
171
171
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 ; }
174
174
175
175
176
176
CHANNELS_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