Submit processed files back to upload directory
This commit is contained in:
parent
aae14715f5
commit
e3e458b2d2
@ -81,8 +81,9 @@ then
|
|||||||
exit 5
|
exit 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mv -v "${shownotes_json}" "${shownotes_json%.*}_origional.json"
|
||||||
|
|
||||||
jq '.' "${shownotes_json}" | sponge "${shownotes_json}"
|
jq '.' "${shownotes_json%.*}_origional.json" > "${shownotes_json}"
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Get the media
|
# Get the media
|
||||||
@ -298,4 +299,10 @@ echo "{
|
|||||||
\"notes\": \"${notes}\"
|
\"notes\": \"${notes}\"
|
||||||
}" | tee "${post_show_json}"
|
}" | tee "${post_show_json}"
|
||||||
|
|
||||||
|
echo "INFO: Uploading hpr${ep_num} from ${email_unpadded}"
|
||||||
|
echo ""
|
||||||
|
echo rsync -ave ssh --partial --progress ${processing_dir}/${dest_dir}/ ${source_dir}/
|
||||||
|
rsync -ave ssh --partial --progress ${processing_dir}/${dest_dir}/ ${source_dir}/
|
||||||
|
echo ""
|
||||||
|
|
||||||
curl --netrc --include --request POST "https://hub.hackerpublicradio.org/cms/add_show_json.php" --header "Content-Type: application/json" --data-binary "@${post_show_json}"
|
curl --netrc --include --request POST "https://hub.hackerpublicradio.org/cms/add_show_json.php" --header "Content-Type: application/json" --data-binary "@${post_show_json}"
|
||||||
|
Loading…
Reference in New Issue
Block a user