That script is to create new log files for recordings that don't already have them, all you need to do is to modify the existing logs. Try this:
0. Stop TVHeadend
1. Backup all the log files to a safe place
2. Copy this script somewhere (NOT the log files directory!)
#!/bin/sh
OLDDIR=/video/tvheadend
NEWDIR=/my/new/dir
LOGS=/var/lib/tvheadend/config/dvr/log
for f in $LOGS/*
do
perl -i -p -e "s|$OLDDIR|$NEWDIR|" $f
done
3. Edit the script for the old and new recording locations
4. Run the script
5. Check the files have been updated and restart TVHeadend.