updated README master
authorfrrobert2 <frrobert@stnectarios.org>
Thu, 29 Apr 2021 20:59:41 +0000 (16:59 -0400)
committerfrrobert2 <frrobert@stnectarios.org>
Thu, 29 Apr 2021 20:59:41 +0000 (16:59 -0400)
README.md

index c81c324e034c2ca89acd0ea532771d8814f9bf09..2861911139a22de471225ffa89db2a93319601dc 100644 (file)
--- a/README.md
+++ b/README.md
@@ -31,38 +31,3 @@ bp.conf - The example podcast config list (containing some of my personal favori
  bashpodder nd 
  Will not actually download the podcasts but will add them to the log file.  Handy to use when you want bashpodder to get caught up with where you are at in a podcast.
 
-# Make script crontab friendly:
-cd $(dirname $0)
-
-# datadir is the directory you want podcasts saved to:
-datadir=$(date +%Y-%m-%d)
-
-# create datadir if necessary:
-mkdir -p $datadir
-
-# Delete any temp file:
-rm -f temp.log
-
-# Read the bp.conf file and wget any url not already in the podcast.log file:
-while read podcast
-       do
-       file=$(xsltproc parse_enclosure.xsl $podcast 2> /dev/null || wget -q $podcast -O - | tr '\r' '\n' | tr \' \" | sed -n 's/.*url="\([^"]*\)".*/\1/p')
-       for url in $file
-               do
-               echo $url >> temp.log
-               if [[ $1 != "nd" ]]
-               then
-               if ! grep "$url" podcast.log > /dev/null
-                       then
-                       wget -t 10 -U BashPodder -c -q -O $datadir/$(echo "$url" | awk -F'/' {'print $NF'} | awk -F'=' {'print $NF'} | awk -F'?' {'print $1'}) "$url"
-               fi
-               fi
-               done
-       done < bp.conf
-# Move dynamically created log file to permanent log file:
-cat podcast.log >> temp.log
-sort temp.log | uniq > podcast.log
-rm temp.log
-# Create an m3u playlist:
-ls $datadir | grep -v m3u > $datadir/podcast.m3u
-