Commit ce5ca42d authored by Ken Fallon's avatar Ken Fallon

2018-08-02_19-57-45_CEST

parent a9248e9e
......@@ -2,7 +2,7 @@
# Copyright Ken Fallon - Released into the public domain. http://creativecommons.org/publicdomain/
find ${HOME}/processing/ -type f | egrep -v 'sponsor-anhonesthost.com-hpr15.flac|outro.flac|intro.flac|sponsor-archive.org.flac' | while read mediafile
do
duration=$( mediainfo --full --Output=XML "${mediafile}" | xmlstarlet sel -T -t -m "Mediainfo/File/track[@type='Audio']/Duration[1]" -v "." -n - | sed 's/.\{3\}$//' )
duration=$( mediainfo --full --Output=XML "${mediafile}" | xmlstarlet sel -T -t -m "_:MediaInfo/_:media/_:track[@type='Audio']/_:Duration[1]" -v "." -n - | awk -F '.' '{print $1}' )
if [ "${duration}" != "" ]
then
echo "${mediafile}: ${duration}"
......
......@@ -153,6 +153,10 @@ do
HPR_artist=$(echo $line | grep "HPR_artist: " | cut -c 13- )
continue
;;
"HPR_espeak")
HPR_espeak=$(echo $line | grep "HPR_espeak: " | cut -c 13- )
continue
;;
"HPR_comment")
HPR_comment=$(echo $line | grep "HPR_comment: " | cut -c 14- )
continue
......@@ -188,7 +192,7 @@ do
esac
done < <( wget --timeout=10 --tries=1 --quiet http://hackerpublicradio.org/say.php?id=${ep_num} -O - )
if [[ -z "$ADDINTRO" || -z "$ADDSUMMARY" || -z "$ADDOUTRO" || -z "$HPR_album" || -z "$HPR_artist" || -z "$HPR_comment" || -z "$HPR_genre" || -z "$HPR_title" || -z "$HPR_track" || -z "$HPR_year" || -z "$HPR_summary" || -z "$HPR_duration" || -z "$HPR_explicit" || -z "$HPR_license" ]]
if [[ -z "$ADDINTRO" || -z "$ADDSUMMARY" || -z "$ADDOUTRO" || -z "$HPR_album" || -z "$HPR_artist" || -z "$HPR_espeak" || -z "$HPR_comment" || -z "$HPR_genre" || -z "$HPR_title" || -z "$HPR_track" || -z "$HPR_year" || -z "$HPR_summary" || -z "$HPR_duration" || -z "$HPR_explicit" || -z "$HPR_license" ]]
then
echo "Could not find information on ${ep_num}. Has the show been posted ?"
exit;
......@@ -199,6 +203,7 @@ echo "Add Summary : $ADDSUMMARY"
echo "Add outro : $ADDOUTRO"
echo "album : $HPR_album"
echo "artist : $HPR_artist"
echo "espeak : $HPR_espeak";
echo "comment : $HPR_comment"
echo "genre : $HPR_genre"
echo "title : $HPR_title"
......@@ -209,6 +214,8 @@ echo "duration : $HPR_duration"
echo "explicit : $HPR_explicit"
echo "license : $HPR_license"
exit
if [[ $HPR_duration == "0" ]]
then
echo "The duration is set to 0. Please update the show with the correct time."
......@@ -335,6 +342,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]
then
mv -v ${fname}* hpr${ep_num}* *_${ep_num}_* /var/IA/done/
fi
wget -q "http://hackerpublicradio.org/hpr_total_rss.php?gomax=1" -O - | xmlstarlet val --err -
wget -q "http://hackerpublicradio.org/hpr_total_spx_rss.php?gomax=1" -O - | xmlstarlet val --err -
wget -q "http://hackerpublicradio.org/hpr_total_ogg_rss.php?gomax=1" -O - | xmlstarlet val --err -
wget --timeout=0 -q "http://hackerpublicradio.org/hpr_ogg_rss.php?gomax=1" -O - | xmlstarlet val --err -
wget --timeout=0 -q "http://hackerpublicradio.org/hpr_mp3_rss.php?gomax=1" -O - | xmlstarlet val --err -
wget --timeout=0 -q "http://hackerpublicradio.org/hpr_spx_rss.php?gomax=1" -O - | xmlstarlet val --err -
......@@ -27,6 +27,7 @@ include '/home/hpr/www/header.php';
<h2>In the Press.</h2>
<ul>
<li>2018-08-01: <a target="_blank" href="https://www.linuxlinks.com/review-hacker-public-radio-podcasts-hacker-community/">Review: The Linux Podcast Scene – all the movers and shakers</a> (<a target="_blank" href="press/ 2018-08-01_linuxlinks.com_review-linux-podcast-scene-movers-shakers.pdf">Archived</a>)</li>
<li>2016-06-26: <a target="_blank" href="http://www.podcastawards.com/">11th Podcast Awards</a> (<a target="_blank" href="press/2016-06-26_www.podcastawards.com.png">Archived</a>)</li>
<li>2016-05-18: <a target="_blank" href="http://solutionsreview.com/endpoint-security/top-ten-cybersecurity-podcasts/">Ten Security Podcasts You Should Be Listening To</a> by Lauren Cooke in Endpoint Security News (<a target="_blank" href="press/2016-05-18_solutionsreview.com_endpoint-security_top-ten-cybersecurity-podcasts.png">Archived</a>)</li>
<li>2016-01-18: <a target="_blank" href="http://www.tripwire.com/state-of-security/security-awareness/information-security-podcast-roundup-2016-edition/">Information Security Podcast Roundup: 2016 Edition</a> from TripWire.com (<a target="_blank" href="press/2016-01-18_Information_Security_Podcast_Roundup_2016_Edition.pdf">Archived</a>)</li>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment