MFS - Question for developers
Posted: Mon Apr 09, 2012 9:14 pm
Hi. Hope some TCL /Tivo MFS coders can help with an idea I have.
I am adding a 'remove from NoReRecord' option for my xTivoweb module.
I have got to the meaty part where I do the actual remove.
I have seen the various bits of code that remove objects from the NoReRecord list but they trash the object.
I don't want to trash the recording but I do want tivo to re-record the programme when it comes round again.
Looking at an MFS recording object, I have
Recording 3005071/10 {
Version = 46
BitRate = 0
ExpirationDate = 15441
ExpirationTime = 41100
ProgramSource = 2724513/-1
SelectionType = 9
Showing = 3005071/11
StartPadding = 300
StartDate = 15439
StartTime = 40798
EndPadding = 1200
ActualShowing = 3005071/13 3005071/14 3005071/18
Score = 5977
Part = 3005071/12 3005071/15 3005071/16 3005071/17 3005071/19
StopDate = 15439
StopTime = 45900
State = 4
StreamFileSize = 2490368
IndexUsed = 3005071/11
IndexPath = /Recording/Active/1:15439:40798:3005071 /Recording/DiskUsed/10/3005071:2490368 /Recording/NowShowing/A:84560:59201:3005071 /Recording/NoReRecord/328693981:NN:99999:03005071
What I plan to do is mfs unlink /Recording/NoReRecord/328693981:NN:99999:03005071
and update the IndexPath to /Recording/Active/1:15439:40798:3005071 /Recording/DiskUsed/10/3005071:2490368 /Recording/NowShowing/A:84560:59201:3005071
The theory being that the object will still exist. Just not in the NoReRecord list.
Does anyone think this is a good move or see any problems?
I am adding a 'remove from NoReRecord' option for my xTivoweb module.
I have got to the meaty part where I do the actual remove.
I have seen the various bits of code that remove objects from the NoReRecord list but they trash the object.
I don't want to trash the recording but I do want tivo to re-record the programme when it comes round again.
Looking at an MFS recording object, I have
Recording 3005071/10 {
Version = 46
BitRate = 0
ExpirationDate = 15441
ExpirationTime = 41100
ProgramSource = 2724513/-1
SelectionType = 9
Showing = 3005071/11
StartPadding = 300
StartDate = 15439
StartTime = 40798
EndPadding = 1200
ActualShowing = 3005071/13 3005071/14 3005071/18
Score = 5977
Part = 3005071/12 3005071/15 3005071/16 3005071/17 3005071/19
StopDate = 15439
StopTime = 45900
State = 4
StreamFileSize = 2490368
IndexUsed = 3005071/11
IndexPath = /Recording/Active/1:15439:40798:3005071 /Recording/DiskUsed/10/3005071:2490368 /Recording/NowShowing/A:84560:59201:3005071 /Recording/NoReRecord/328693981:NN:99999:03005071
What I plan to do is mfs unlink /Recording/NoReRecord/328693981:NN:99999:03005071
and update the IndexPath to /Recording/Active/1:15439:40798:3005071 /Recording/DiskUsed/10/3005071:2490368 /Recording/NowShowing/A:84560:59201:3005071
The theory being that the object will still exist. Just not in the NoReRecord list.
Does anyone think this is a good move or see any problems?