Move HPR/hpr_hub#88
This commit is contained in:
@@ -518,10 +518,10 @@ function check_variable_is_correct() {
|
||||
then
|
||||
echo_error "The \"shownotes_json\" file is missing."
|
||||
fi
|
||||
if [ "$( file --brief --mime-type "${shownotes_json}" | grep --count 'application/json' )" -ne "1" ]
|
||||
then
|
||||
echo_error "The \"shownotes_json\" variable has not a valid \"application/json\" mime type."
|
||||
fi
|
||||
# if [ "$( file --brief --mime-type "${shownotes_json}" | grep --count 'application/json' )" -ne "1" ]
|
||||
# then
|
||||
# echo_error "The \"shownotes_json\" variable has not a valid \"application/json\" mime type."
|
||||
# fi
|
||||
jq '.' "${shownotes_json}" >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
@@ -637,7 +637,7 @@ function get_next_show_from_hpr_hub() {
|
||||
email="$( echo ${response} | awk '{print $6}' )"
|
||||
email_unpadded="$( echo $email | sed 's/.nospam@nospam./@/g' )"
|
||||
|
||||
hpr_upload_dir="/home/hpr/upload/${timestamp_epoc}_${ep_num}_${ep_date}_${key}"
|
||||
hpr_upload_dir="hub.hackerpublicradio.org/upload/${timestamp_epoc}_${ep_num}_${ep_date}_${key}"
|
||||
source_dir="hpr:${hpr_upload_dir}"
|
||||
dest_dir="${timestamp_epoc}_${ep_num}_${ep_date}_${key}"
|
||||
working_dir="${processing_dir}/${dest_dir}"
|
||||
|
Reference in New Issue
Block a user