View Full Version : Mfs_ftp inserted duration change?
darrin75
05-27-2005, 03:59 AM
Does anyone have any script to change the duration to the correct place for non-tivo shows. I don't know tcl.
When i searched this thread is as close as i could get
http://www.dealdatabase.com/forum/showthread.php?t=32588&page=1&pp=15&highlight=Inserted+recordings
JJBliss
05-27-2005, 02:07 PM
Search for EditTitle4
darrin75
05-27-2005, 03:16 PM
JBliss,
how exactly does this script work. I followed the help, but no luck. I press R to list my recordings, then C to change the info. such as C FSID: 00000 and nothing, what am i doing wrong, is there a txt file explaining this script somewhere. This is my first time using this script. Thanks
JJBliss
05-27-2005, 03:39 PM
http://www.dealdatabase.com/forum/showpost.php?p=61682&postcount=49
But more importantly, what model Tivo and what OS are you running?
Does the script you are blindly running support your configuration?
darrin75
05-27-2005, 04:01 PM
dsr704 dtivo 4.01b HMO etc..
JJBliss
05-27-2005, 07:59 PM
etc..
Maybe that's why it doesn't work...
:rolleyes:
Read the link in my post above. If that doesn't get you going, you'll need to provide a lot more information and possibly some of your own diagnostic skills.
darrin75
05-27-2005, 11:26 PM
I have Phillips dsr704 modified with the 4.01b image superpatched, to enable mrv, hmo features. All this features work fine. I have tivowebplus1.1pre installed with hackman. I also have mfs_ftp.1.29p installed. All this are working. Except Tivowebplus1.1pre has a few things wrong. When i run the EditTitle4.tcl the menu comes up. I then press r to review my recordings which display fine along with fsid #. When I press c to change info
bash-2.02# cd /hacks
bash-2.02#
bash-2.02# EditTitle4.tcl
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
r
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
Title : Lethal Weapon 2
Fsid : 103468
Title : Raising Helen
Fsid : 103486
Title : The Chronicles of Riddick
Fsid : 103476
(press Enter to continue)
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
C
Change Program Info :: Enter FSID:
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
So if i enter c: fsid: 103468 it just returns me to the menu page.
am i just not typing it incorrectly or what. Don't really know where to look for diag. the problem.. Any suggestion would be great. Also can provide any info needed. I assume some of the paths in the script are incorrect(maybe) for my OS. Also if i contol c to stop this script it reboots my tivo?
Thinkdiff
05-27-2005, 11:39 PM
what happens if you just put:
C 103468
edit: tivosh cannot be exitted abnormally or else the tivo reboots. use the "Q" command to quit the script.
darrin75
05-27-2005, 11:45 PM
bash-2.02# cd /hacks
bash-2.02#
bash-2.02# EditTitle4.tcl
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
r
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
Title : Lethal Weapon 2
Fsid : 103468
Title : Raising Helen
Fsid : 103486
Title : The Chronicles of Riddick
Fsid : 103476
(press Enter to continue)
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
C
Change Program Info :: Enter FSID:
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
S
Delete History :: Enter FSID:
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
H
Title : Lethal Weapon 2
Fsid : 103460
Title : D2: The Mighty Ducks
Fsid : 107506
(press Enter to continue)
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
C
Change Program Info :: Enter FSID:
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
FSID:103486
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
C 103460
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
Just back to the main menu?
Thinkdiff
05-27-2005, 11:58 PM
The Script doesn't work on 6.2, which is the only thing I run, but I believe after the line:
Change Program Info :: Enter FSID:
you put in the FSID, like so:
EditTitle 4.0
________________________________
(Q)uit / H(e)lp
List : (R)ecordings
: (D)eleted Programs
: Recording (H)istory
: (T)oDo
Info : (C)hange Recording Info
: Change ToDo (L)isting
: (F)sid Info
: Tivo (I)nfo
Delete : Recordin(g)
: (A)ll History
: (S)pecific History
: (U)ndelete Recording
Enter Command: ________________
C
Change Program Info :: Enter FSID:
574085
darrin75
05-28-2005, 12:05 AM
Nope...
I guess this is script is no good to the 4.01b and 6.2 users. Thanks for the help though. I will keep trying.. If you find out how to use this with either version let me know.
darrin75
05-28-2005, 12:39 AM
Ok heres the FIX..Just in Case...Make sure your telnet is not repeating. If it is this is preventing the script from working correct. Here's what to
Open Command Window
Type "telnet -a" [without the quotes] or if that doesn't work try, typing "telnet.exe" [again without the quotes] at the prompt in the command window. Then press "enter"
Type "unset crlf" [without the quotes]. Then press "enter"
Type "quit" [without the quotes]. Then press "enter"
When you restart a telnet session in the command window, no more "hiccupping" prompts
Restart the script it works now...Thanks to all for the help..
JJBliss
05-28-2005, 01:29 PM
Nope...
I guess this is script is no good to the 4.01b and 6.2 users.
Works fine on 4.01b
darrin75
05-28-2005, 04:35 PM
Yeah jjbliss it does i stand corrected. It was a hicupp telnet problem..See post above
darrin75
05-28-2005, 06:52 PM
Don't know if this ? belongs here but, since I started the thread here goes. I am able to successfully change the time start time, stop time, but if I go into now playing the time still says 0.01, it seems that this script only affects the timeline aka progress bar. Correct me if I am wrong.
For the trick play bar to come out right, the Duration object should be properly initialized as well. As far as I can tell, the Duration object should equal the difference between the stoptime and starttime attributes. Left to its own devices, mfs_ftp will set Duration to 60 seconds upon insertion.
It is not hard to calcuate the correct value for Duration, if you look at the range of tivo timestamps in a recording.
darrin75
05-28-2005, 07:32 PM
Yeah but how do you correct the duration object. Any script i try to change to that object. It always gets me object does exist.. Does this obect need to inserted in to the mfs_ftp.tcl script. IF i guess this would need to be changed every time another non-tivo file is inserted. By the way the mplex utility is working great.. :)
If none of the existing editing tools support it, you could write a simple TCL script to change the duration object. Or yes, you could fix mfs_ftp to set the value dynamically (if it looked at the timestamps in the master chunk records). But this may or may not be the best way to go, it depends upon what you're doing. If you want to update this object immediately after inserting something with mfs_ftp, it would probably just be easier to append some XML to your .ty file instead. Good to hear ty-mplex is working for you, the thread left me thinking most users were having platform specific issues. If ty-mplex is your only concern, it would be easy to make ty-mplex generate new XML (in the case that you didn't pass in XML to it), or update the duration object if you did pass in old XML.
darrin75
05-29-2005, 12:01 AM
is there an option in mplex to generate this xml file..I it has to built for this, i never could get it to work. Also i just let the tivo generate the xml on its on.. I just wanted my inserts to have the correct time on them.
Yes, tymplex can generate new xml from old using the '-x <xml-file>' option. That code currently doesn't update the duration, stoptime, or starttime objects, which are important for getting the trick play bar to come out right. In fact it only updates the StreamFileSize object. Tymplex could also, but doesn't currently, synthesize new XML when no old xml is provided. (I've tried this with my own code and it worked fine). If insertion of tymplex data is your major concern, adding such support to tymplex would make a lot more sense and be just as easy as fixing EditTitle4.tcl or tivoweb to fix things up after the fact. Less error prone too.
Search for EditTitle4Is there a trick to 'advanced search' to make it match against attachment file names? When I do a keyword search on EditTitle4 I just get this thread. I wish keyword searches matched against attachment file names.
darrin75
05-29-2005, 04:04 AM
Yes, i have searched and used that script, but it will only update the duration on the playback bar. If you go into nowplaying and select a film press right arrow key to the title describtion etc. the duration at the bottom still says 0.01. This part is really what i am looking to correct.. BY the way most of the stuff i am using is non-tivo movies which has no xml to begin with so rebuilding from old is out..
psxboy
05-29-2005, 06:46 PM
For pete's sake... just go into MFS & set the Duration in the Showing object to whatever you want it to be:
#!/tvbin/tivosh
set db [dbopen]
RetryTransaction {
set rec [db $db openid <fsid of the recording you want to modify>]
set showing [dbobj $rec get Showing]
dbobj $showing set Duration <duration in seconds>
}
<fsid of the recording you want to modify> you can get from Tivoweb by browsing the /Recording/NowShowingByBucketTitle in MFS or by using mls in tivosh.
<duration in seconds> should be the correct duration of the show in seconds. Ie. 3600 = 1 hour.
If anyone else is interested, they can write some interactive code to wrap around the transaction so one doesn't have to get the fsids/durations manually. I tend to do things manually & don't bother writing dummy-proof code for something I do once in a blue moon.
-psxboy
darrin75
05-29-2005, 07:02 PM
Thanks I really appreciate it. Sorry about the long draw out process. I just don't know anything about tcl..Thanks alot :)
darrin75
06-19-2005, 02:38 AM
It seems that script will only change the title and desc..I tried modifing the Startdate StopDate, to find that my now playing list stills says the same??Any thoughts
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.