Compare commits

..

2 Commits
main ... main

3 changed files with 7 additions and 10 deletions

View File

@ -2,7 +2,7 @@
# Copyright Ken Fallon - Released into the public domain. http://creativecommons.org/publicdomain/ # Copyright Ken Fallon - Released into the public domain. http://creativecommons.org/publicdomain/
#============================================================ #============================================================
PATH=$PATH:/home/ken/sourcecode/hpr/hpr_hub/bin/ PATH=$PATH:/home/ken/sourcecode/hpr/hpr_hub/bin/
source /home/ken/tmp/pip3.9/bin/activate #source /home/ken/tmp/pip3.9/bin/activate
TEMP_DIR="/var/tmp/" TEMP_DIR="/var/tmp/"
CHANNELS="1" CHANNELS="1"

5
bin/showstatus.bash Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Copyright Ken Fallon - Released into the public domain. http://creativecommons.org/publicdomain/
#============================================================
curl --silent --netrc-file ${HOME}/.netrc "https://hub.hackerpublicradio.org/cms/status.php"

View File

@ -220,7 +220,6 @@ print " <atom:link href=\"http://hackerpublicradio.org". str_replace('&', '&amp
print " <pubDate>".date(DATE_RFC1123, strtotime(date('Y-m-d')))."</pubDate>\n"; print " <pubDate>".date(DATE_RFC1123, strtotime(date('Y-m-d')))."</pubDate>\n";
if ($result = mysqli_query($connection, $query)) { if ($result = mysqli_query($connection, $query)) {
$ep_count = 0;
while ($row = mysqli_fetch_array($result)) { while ($row = mysqli_fetch_array($result)) {
$id = fixid(stripslashes($row['id'])); $id = fixid(stripslashes($row['id']));
$version = $row['version']; $version = $row['version'];
@ -283,12 +282,7 @@ if ($result = mysqli_query($connection, $query)) {
echo " <itunes:author>". $email_padded . " (" . htmlspecialchars(stripslashes(strip_tags($row["host"]))) .")</itunes:author>\n"; echo " <itunes:author>". $email_padded . " (" . htmlspecialchars(stripslashes(strip_tags($row["host"]))) .")</itunes:author>\n";
echo " <googleplay:image href=\"http://hackerpublicradio.org/images/hpr_feed_itunes.png\"/>\n"; echo " <googleplay:image href=\"http://hackerpublicradio.org/images/hpr_feed_itunes.png\"/>\n";
echo " <link>https://hackerpublicradio.org/eps/hpr".$id."/index.html</link>\n"; echo " <link>https://hackerpublicradio.org/eps/hpr".$id."/index.html</link>\n";
if ( $feed === "total" && $ep_count >= 10) {
echo " <description></description>\n";
}
else {
echo " <description><![CDATA[" . $show_notes . "]]>\n</description>\n"; echo " <description><![CDATA[" . $show_notes . "]]>\n</description>\n";
}
// echo " <googleplay:description><![CDATA[" . $show_notes . "]]>\n</googleplay:description>\n"; // echo " <googleplay:description><![CDATA[" . $show_notes . "]]>\n</googleplay:description>\n";
echo " <itunes:summary><![CDATA[" . $itunes_summary . "]]>\n</itunes:summary>\n"; echo " <itunes:summary><![CDATA[" . $itunes_summary . "]]>\n</itunes:summary>\n";
echo " <pubDate>" .date(DATE_RFC1123, strtotime($row['date'])) . "</pubDate>\n"; echo " <pubDate>" .date(DATE_RFC1123, strtotime($row['date'])) . "</pubDate>\n";
@ -297,8 +291,6 @@ if ($result = mysqli_query($connection, $query)) {
echo " <guid>" . $url . "</guid>\n"; echo " <guid>" . $url . "</guid>\n";
echo " </item>\n"; echo " </item>\n";
$ep_count ++;
} }
} }
//Display non-connection errors //Display non-connection errors