2026-08-07_13-29-49_CEST
This commit is contained in:
@@ -5,34 +5,39 @@
|
|||||||
tmpdir=$(mktemp --directory /tmp/"$( basename ${0} ).XXXXXX" )
|
tmpdir=$(mktemp --directory /tmp/"$( basename ${0} ).XXXXXX" )
|
||||||
base="https://hackerpublicradio.org"
|
base="https://hackerpublicradio.org"
|
||||||
reportfile="${tmpdir}/report.txt"
|
reportfile="${tmpdir}/report.txt"
|
||||||
for feed in comments.rss comments_rss.php hpr_mp3.rss hpr_mp3_rss.php hpr_mp3_rss.php?series=47 hpr_ogg.rss hpr_ogg_rss.php hpr_ogg_rss.php?series=47 hpr_opus_rss.php hpr_opus_rss.php?series=47 hpr_rss_mp3.php hpr_rss.php hpr_spx.rss hpr.sql.rss hpr_total_mp3.rss hpr_total_ogg.rss hpr_total_ogg_rss.php hpr_total_opus_rss.php hpr_total_rss.php hpr_total_spx.rss rss-ccdnv1.php rss-future.php rss.php
|
echo "Checking feeds"
|
||||||
|
#for feed in comments.rss comments_rss.php hpr_mp3.rss hpr_mp3_rss.php hpr_mp3_rss.php?series=47 hpr_ogg.rss hpr_ogg_rss.php hpr_ogg_rss.php?series=47 hpr_opus_rss.php hpr_opus_rss.php?series=47 hpr_rss_mp3.php hpr_rss.php hpr_spx.rss hpr.sql.rss hpr_total_mp3.rss hpr_total_ogg.rss hpr_total_ogg_rss.php hpr_total_opus_rss.php hpr_total_rss.php hpr_total_spx.rss rss-ccdnv1.php rss-future.php rss.php
|
||||||
|
for feed in comments.rss comments_rss.php hpr_mp3_rss.php hpr_mp3_rss.php?series=47 hpr_ogg_rss.php hpr_ogg_rss.php?series=47 hpr_opus_rss.php hpr_opus_rss.php?series=47 hpr_rss_mp3.php hpr_rss.php hpr_total_ogg_rss.php hpr_total_opus_rss.php hpr_total_rss.php rss-ccdnv1.php rss-future.php rss.php
|
||||||
do
|
do
|
||||||
tmpfile="${tmpdir}/${feed}"
|
tmpfile="${tmpdir}/${feed}"
|
||||||
wget --no-verbose "${base}/${feed}" --output-document="${tmpfile}"
|
wget --quiet "${base}/${feed}" --output-document="${tmpfile}"
|
||||||
if [[ ! -s "${tmpfile}" || -z "${tmpfile}" ]]
|
if [[ ! -s "${tmpfile}" || -z "${tmpfile}" ]]
|
||||||
then
|
then
|
||||||
echo "The \"tmpfile\" variable/file is missing."
|
echo "The \"${tmpfile}\" variable/file is missing."
|
||||||
|
continue
|
||||||
fi
|
fi
|
||||||
if [ "$( file --brief --mime-type "${tmpfile}" | grep --count 'text/xml' )" -ne "1" ]
|
if [ "$( file --brief --mime-type "${tmpfile}" | grep --count 'xml' )" -ne "1" ]
|
||||||
then
|
then
|
||||||
echo "The \"tmpfile\" variable has not a valid \"text/xml\" mime type."
|
echo "The \"${tmpfile}\" variable has not a valid \"text/xml\" mime type."
|
||||||
|
continue
|
||||||
fi
|
fi
|
||||||
xmllint --format "${tmpfile}" >/dev/null 2>&1
|
xmllint --format "${tmpfile}" >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "✗ The feed \"${base}/${feed}\" is not valid xml."
|
echo "✗ The feed \"${base}/${feed}\" is not valid xml."
|
||||||
|
echo "Check file \"${tmpfile}\""
|
||||||
else
|
else
|
||||||
echo "🗸 The feed \"${base}/${feed}\" is valid xml."
|
rm "${tmpfile}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo "Finished Checking feeds"
|
||||||
# check_urls_in_file.bash
|
# check_urls_in_file.bash
|
||||||
|
|
||||||
read -p "Remove the feeds ? (Y|n) ? " -n 1 -r
|
# read -p "Remove the feeds ? (Y|n) ? " -n 1 -r
|
||||||
echo # (optional) move to a new line
|
# echo # (optional) move to a new line
|
||||||
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
# if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
# then
|
||||||
echo "The files are available in \"${tmpdir}\"."
|
# echo "The files are available in \"${tmpdir}\"."
|
||||||
else
|
# else
|
||||||
rm -v "${tmpdir}/*.*"
|
# rm -v "${tmpdir}/*.*"
|
||||||
fi
|
# fi
|
||||||
|
|||||||
@@ -1254,6 +1254,8 @@ function manual_shownotes_review() {
|
|||||||
echo_error "The edited shownotes are missing \"${shownotes_edited}\"."
|
echo_error "The edited shownotes are missing \"${shownotes_edited}\"."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Bug utf8mb4 https://repo.anhonesthost.net/HPR/hpr_hub/issues/103
|
||||||
|
# emover --yes "${shownotes_edited}"
|
||||||
kate "${shownotes_edited}" >/dev/null 2>&1 &
|
kate "${shownotes_edited}" >/dev/null 2>&1 &
|
||||||
librewolf "${working_dir}/${media_basename%.*}_media_report.html" >/dev/null 2>&1 &
|
librewolf "${working_dir}/${media_basename%.*}_media_report.html" >/dev/null 2>&1 &
|
||||||
seamonkey "${shownotes_edited}" >/dev/null 2>&1 &
|
seamonkey "${shownotes_edited}" >/dev/null 2>&1 &
|
||||||
|
|||||||
Reference in New Issue
Block a user