dat update and minor format changes

This commit is contained in:
2025-10-20 15:36:48 +02:00
parent d19fe2e4bf
commit 50facb86f3
2 changed files with 10 additions and 9 deletions

View File

@@ -36,3 +36,4 @@
2025-06-01,2025-07-04 15:00:00 2025-06-01,2025-07-04 15:00:00
2025-07-01,2025-08-01 15:00:00 2025-07-01,2025-08-01 15:00:00
2025-08-01,2025-08-29 15:00:00 2025-08-01,2025-08-29 15:00:00
2025-09-01,2025-09-26 15:00:00

View File

@@ -48,13 +48,6 @@ function echo_debug() {
fi fi
} }
#################################################
# Display Information message
function abs_diff() {
echo $(($1 >= $2 ? $1 - $2 : $2 - $1))
}
################################################# #################################################
# Display Help # Display Help
@@ -63,6 +56,13 @@ function display_help_and_exit() {
exit 1 exit 1
} }
#################################################
# Calculate difference
function abs_diff() {
echo $(($1 >= $2 ? $1 - $2 : $2 - $1))
}
################################################# #################################################
# Program Checks # Program Checks
@@ -174,7 +174,7 @@ function check_variable_is_correct() {
fi fi
if [ "$( file --brief --mime-type "${assets_csv}" | grep --count 'text/csv' )" -ne "1" ] if [ "$( file --brief --mime-type "${assets_csv}" | grep --count 'text/csv' )" -ne "1" ]
then then
echo_error "The \"assets_csv\" variable has not a valid \"text/csv\" mime type." echo_error "The \"assets_csv\" file has not a valid \"text/csv\" mime type."
fi fi
if [ "$( wc --lines ${assets_csv} | awk '{print $1}' )" -le "1" ] if [ "$( wc --lines ${assets_csv} | awk '{print $1}' )" -le "1" ]
then then
@@ -1657,7 +1657,7 @@ function generate_show_transcript() {
cat "${episode_srt}" | while read this_line cat "${episode_srt}" | while read this_line
do do
if [ "$( echo "${this_line}" | grep -c --perl-regexp '^[0-9]+$' )" -eq "1" ] if [ "$( echo "${this_line}" | grep --count --perl-regexp '^[0-9]+$' )" -eq "1" ]
then then
echo "${count}" echo "${count}"
count=$((count+1)) count=$((count+1))