So far, this modification appears to be working, and although there is a very, very slight hiccup in audio, it seems to be much better.
I'd like to get some confirmation about this still obtaining the end result of removing SDDs. Thanks!
Code:
#!/tvbin/tivosh
# SDD unscheduler by AlphaWolf_HK, mrblack51
EnableTransactionHoldoff true
tvsource $tcl_library/tv/mfslib.tcl
proc strim {str} { return [string trim $str "\{\} "] }
# initializing db now, due to A/V glitch issue
set dbPoolSize [expr 100 * 1024]
exec sleep 1
puts stdout "set dbopen"
set db [dbopen $dbPoolSize]
puts stdout "done with set dbopen"
# check tyDbs
ForeachMfsFile fsid name type /Recording/Active "" {
if { $type == "tyDb" } {
RetryTransaction {
set rec [db $db openid $fsid]
set showing [dbobj $rec get Showing]
set program [dbobj $showing get Program]
set title [strim [dbobj $program get Title]]
set state [dbobj $rec get State]
if {$state == 6 && $title == "TiVo Service Data"} {
puts "Found $title at FSID: $fsid and unscheduling it."
dbobj $rec set State 2
}
}
}
}