
Originally Posted by
jkozee
I have a script I run when I am collecting old shows that are being aired out of order, but I want to watch based on the original air date. It appears to be appropriate for this script, so patched this script accordingly. I also added some code to ignore the "HD Recordings" folder that appears on my THD. Only tested on 11.0 THD.
I get this error when I run your modded script on my 6.2 DTivos:
Code:
Searching for Top Gear..wrong # args: should be "string compare string1 string2"
while executing
"string compare -length 19 $name "1:ZZZZZHDRECORDINGS""
<snip>
I'm guessing that older software versions like 6.2 run a version of the string command that doesn't support the -length option.
Another issue is that I failed to update the OP with the newer versions of the script that I posted on TCF, so you ended up modifying an obsolete version. Sorry about that. After making some recent enhancements, I rolled up all your changes into version 2.9, which I will post in the OP after I comment out the offending string commands shown above. If you can change the way you look for HD recordings, I'd be happy to test it and incorporate it into the OP. If worst comes to worst, you could also do a software version check.
edit: I fixed the string compare issue by replacing this command:
Code:
if { [string compare -length 19 $name "1:ZZZZZHDRECORDINGS"] != 0 } {
with this one:
Code:
if { ! [string match "1:ZZZZZHDRECORDINGS*" $name ] } {
It does essentially the same thing, and by using the wildcard it will only match the beginning of the show name. The new version is now attached to the OP.