2016-03-25, 16:22
I found a minor issue, with episode matching for CBC's Dragon's Den. I'm recording the daily showing, but it isn't doing a episode match. After taking a deeper look at it, I found that the database for the show had multiple copies of the same data, and this was causing the failure. So I added a database clean function as part of the show information download. What I added was the additional RM lines in the snippet below. Hope this helps some of the other users.
if [ -f "$mythicalLibrarian/$NewShowName/$NewShowName.xml" ]; then
Ename=""
actualEname=""
FAired=""
SeasonNr=""
EpisodeNr=""
recordNumber=0
# Remove data files
echo "Cleaning show database"| tee -a "$mythicalLibrarian"/output.log
rm "$mythicalLibrarian/$NewShowName/$NewShowName.actualEname.txt"
rm "$mythicalLibrarian/$NewShowName/$NewShowName.Ename.txt"
rm "$mythicalLibrarian/$NewShowName/$NewShowName.FAired.txt"
rm "$mythicalLibrarian/$NewShowName/$NewShowName.S.txt"
rm "$mythicalLibrarian/$NewShowName/$NewShowName.E.txt"
echo "Parsing Downloaded information: $NewShowName.xml "
while read line
do
if [ -f "$mythicalLibrarian/$NewShowName/$NewShowName.xml" ]; then
Ename=""
actualEname=""
FAired=""
SeasonNr=""
EpisodeNr=""
recordNumber=0
# Remove data files
echo "Cleaning show database"| tee -a "$mythicalLibrarian"/output.log
rm "$mythicalLibrarian/$NewShowName/$NewShowName.actualEname.txt"
rm "$mythicalLibrarian/$NewShowName/$NewShowName.Ename.txt"
rm "$mythicalLibrarian/$NewShowName/$NewShowName.FAired.txt"
rm "$mythicalLibrarian/$NewShowName/$NewShowName.S.txt"
rm "$mythicalLibrarian/$NewShowName/$NewShowName.E.txt"
echo "Parsing Downloaded information: $NewShowName.xml "
while read line
do