Commit 461dc336 authored by Ken Fallon's avatar Ken Fallon

2019-03-25_15-21-45_CET remove invalid gmane links

parent c709b46b
......@@ -28,6 +28,7 @@ CHANNELS="1"
FIXAUDIO="1"
ADDSUMMARY="y"
ADDINTRO="n"
ADDPROMO="n"
ADDOUTRO="n"
ARTIST="EMPTY"
TITLE="EMPTY"
......@@ -35,11 +36,12 @@ YEAR="EMPTY"
SLOT="EMPTY"
basedir="/var/IA"
intro="${basedir}/intro.flac"
promo="${basedir}/promo.flac"
outro="${basedir}/outro.flac"
anhonesthost="${basedir}/sponsor-anhonesthost.com-hpr15.flac"
internetarchive="${basedir}/sponsor-archive.org.flac"
while getopts "hisob2n" OPTION
while getopts "hipsob2n" OPTION
do
case $OPTION in
h)
......@@ -52,6 +54,9 @@ do
i)
ADDINTRO="y"
;;
p)
ADDPROMO="y"
;;
o)
ADDOUTRO="y"
;;
......@@ -103,6 +108,13 @@ if [ ! -f "${intro}" ]; then
exit 1
fi
if [ "$ADDPROMO" = 'y' ]; then
if [ ! -f "${promo}" ]; then
echo "sorry, file \"promo.flac\" does not exist"
exit 1
fi
fi
if [ ! -f "${outro}" ]; then
echo "sorry, file \"outro.flac\" does not exist"
exit 1
......@@ -153,10 +165,6 @@ 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
......@@ -192,18 +200,18 @@ 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_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" ]]
if [[ -z "$ADDINTRO" || -z "$ADDPROMO" || -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" ]]
then
echo "Could not find information on ${ep_num}. Has the show been posted ?"
exit;
fi
echo "--------------------------------------------------------------------------------"
echo "Add intro : $ADDINTRO"
echo "Add promo : $ADDPROMO"
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"
......@@ -214,8 +222,6 @@ 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."
......@@ -251,6 +257,12 @@ fi
ffmpeg -i "$anhonesthost" -ar 44100 -ac $CHANNELS -acodec pcm_s16le -f s16le - >> ${fname}_tmp_hh.pcm 2>> ${fname}_tmp.log
ffmpeg -i "$internetarchive" -ar 44100 -ac $CHANNELS -acodec pcm_s16le -f s16le - >> ${fname}_tmp_ia.pcm 2>> ${fname}_tmp.log
if [ "$ADDPROMO" = 'y' ]; then
echo "Adding the promo"
ffmpeg -i "$promo" -ar 44100 -ac $CHANNELS -acodec pcm_s16le -f s16le - >> ${fname}_tmp_hh.pcm 2>> ${fname}_tmp.log
ffmpeg -i "$promo" -ar 44100 -ac $CHANNELS -acodec pcm_s16le -f s16le - >> ${fname}_tmp_ia.pcm 2>> ${fname}_tmp.log
fi
if [ "$ADDINTRO" = 'y' ]; then
echo "Adding the intro"
ffmpeg -i "$intro" -ar 44100 -ac $CHANNELS -acodec pcm_s16le -f s16le - >> ${fname}_tmp_hh.pcm 2>> ${fname}_tmp.log
......@@ -346,3 +358,5 @@ wget --timeout=0 -q "http://hackerpublicradio.org/hpr_ogg_rss.php?gomax=1" -O -
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 -
#rsync -ave ssh --partial --progress /var/IA/uploads/ hpr:/home/hpr/upload/processed/
rsync -ave ssh --partial --progress /var/IA/uploads/ marvin:/var/IA/uploads/
......@@ -30,9 +30,6 @@ include '/home/hpr/www/header.php';
HPR is governed by the community, so decisions about how <?php print "${HPR_Name}";?> Public Radio should be run are made on the mailing list you can join it by going to :<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://<?php print "${HTTP_HOST}";?>/maillist">http://<?php print "${HTTP_HOST}";?>/maillist</a>
</p>
<p>
Please note: due to technical issues beyond our control the mail list is not been archived on the HPR site. We are now using the <a href="http://blog.gmane.org/gmane.network.syndication.podcast.hacker-public-radio">Gmane News Archive</a> service.
</p>
</article>
</main>
......
......@@ -68,7 +68,6 @@ Ken.
<ul>
<li><a href="http://<?php print "${HTTP_HOST}";?>/feed">Feeds</a></li>
<li><a href="http://<?php print "${HTTP_HOST}";?>/irc">IRC</a></li>
<li><a href="http://<?php print "${HTTP_HOST}";?>/gmane">Mail archive</a></li>
<li><a href="http://<?php print "${HTTP_HOST}";?>/maillist">Mail list</a></li>
<li><a href="http://<?php print "${HTTP_HOST}";?>/itunes">iTunes</a></li>
<li><a href="http://<?php print "${HTTP_HOST}";?>/twitter">Twitter</a></li>
......@@ -86,7 +85,6 @@ Ken.
<li><a href="http://<?php print "${HTTP_HOST}";?>/promote.php">Promote HPR</a></li>
<li><a href="http://<?php print "${HTTP_HOST}";?>/comments_viewer.php">Show Comments</a></li>
<li><a href="http://<?php print "${HTTP_HOST}";?>/maillist">Mail list</a></li>
<li><a href="http://dir.gmane.org/gmane.network.syndication.podcast.hacker-public-radio">Gmane Maillist Archive</a></li>
<li><a href="http://webchat.freenode.net/?channels=oggcastplanet" target="_blank">#oggcastplanet</a></li>
</ul>
<li><a href="search.php">Search</a></li>
......
......@@ -43,17 +43,6 @@ include '/home/hpr/www/header.php';
<li><a href="http://<?php print "${HTTP_HOST}";?>/comments_rss.php">Listener contributed comments to the episodes</a></li>
</ul>
</article>
<article>
<header>
<h2><img src="../images/feed.png" alt="rss logo"> Mail list feed</h2>
</header>
<ul>
<li><a href="http://rss.gmane.org/messages/excerpts/gmane.network.syndication.podcast.hacker-public-radio">All messages from the list, with excerpted texts.</a></li>
<li><a href="http://rss.gmane.org/topics/excerpts/gmane.network.syndication.podcast.hacker-public-radio">Topics from the list, with excerpted texts.</a></li>
<li><a href="http://rss.gmane.org/messages/complete/gmane.network.syndication.podcast.hacker-public-radio">All messages from the list, with complete texts.</a></li>
<li><a href="http://rss.gmane.org/topics/complete/gmane.network.syndication.podcast.hacker-public-radio">Topics from the list, with complete texts.</a></li>
</ul>
</article>
<article>
<header>
<h2>External Sources</h2>
......
......@@ -8,7 +8,7 @@ include '/home/hpr/www/header.php';
<main id="maincontent">
<h1>HPR Theme Music</h1>
<p>
An HPR episode is composed of a few parts. (See <a href="http://thread.gmane.org/gmane.network.syndication.podcast.hacker-public-radio/385">discussion</a>)
An HPR episode is composed of a few parts.
</p>
<ol>
<li>
......
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