WIP Correcting TVH's absolute episode numbering.
#3
Just tried the script. Seems it doesn't handle spaces in directory names well:

Code:
root@debian# \ls
Ask This Old House  Small Soldiers  livetvbuffer  renamer.sh
( /mnt/data/data/tvrecordings )
root@debian# ls
Ask This Old House  Small Soldiers  livetvbuffer  renamer.sh
( /mnt/data/data/tvrecordings )
root@debian# ./renamer.sh
changing directory to Ask This Old House/
./renamer.sh: line 6: cd: Ask: No such file or directory
Filname not correct format - skipping
0 files renamed
changing directory to Small Soldiers/
./renamer.sh: line 6: cd: Small: No such file or directory
Filname not correct format - skipping
0 files renamed
changing directory to livetvbuffer/
./renamer.sh: line 6: cd: livetvbuffer/: No such file or directory
Unable to find show-id.  Exiting !!

I tried changing line 6 to read:
Code:
cd "$file"

But that didn't work either. Any thoughts?
Reply


Messages In This Thread
RE: Correcting TVH's absolute episode numbering. - by dinki - 2014-01-29, 19:26
Logout Mark Read Team Forum Stats Members Help
Correcting TVH's absolute episode numbering.0