Hi, I just started to use bashpodder, and i think is a great (and little) script. I have a problem with original script and I changed it. The problem is The podcast that i hear arent dailys. I have a cron task on every day to find new podcasts and i get many days a new dir with a date and without any file inside of it. I moved the creation of new dir when i'm sure that there are files to fill it. It have a little performance penalty (check the exists of dir on every file you download), but it's not important if you compare it with the time of download of the file (ten o more minutes). My second modification: i changed position of logs files and conf file. I think is better have a hide directory with theirs. Ok, this is my version of full bashpodder. -------START #!/bin/bash # By Linc 10/1/2004 # Find the latest script at # http://linc.homeunix.org:8080/scripts/bashpodder # Last revision 12/14/2004 - Many Contributers! # If you use this and have made improvements or have comments # drop me an email at linc dot fessenden at gmail dot com # I'd appreciate it! # Make script crontab friendly: cd $(dirname $0) # datadir is the directory you want podcasts saved to: datadir=~/Supratech/$(date +%Y%m%d) # Delete any temp file: rm -f ~/.bashpodder/temp.log # Read the bp.conf file and wget any url not already in the podcast.log # file: while read podcast do file=$(wget -q $podcast -O - | tr '\r' '\n' | tr \' \" | sed -n 's/.*url="\([^"]*\)".*/\1/p') for url in $file do echo $url >> ~/.bashpodder/temp.log if ! grep "$url" ~/.bashpodder/podcast.log > /dev/null then # Check for and create datadir if necessary: if test ! -d $datadir then mkdir $datadir fi wget -q -P $datadir "$url" fi done done < ~/.bashpodder/bp.conf # Move dynamically created log file to permanent log file: cat ~/.bashpodder/podcast.log >> ~/.bashpodder/temp.log sort ~/.bashpodder/temp.log | uniq > ~/.bashpodder/podcast.log rm ~/.bashpodder/temp.log # Create an m3u playlist: ls $datadir | grep -v m3u > $datadir/podcast.m3u -------END