PDA

View Full Version : Transfer and delete - HERE IT IS!



jkozee
02-03-2007, 01:42 AM
Not sure if there are many people out there like me, but I found it extremely anoying that my TiVo didn't have this as an option when MRV'ing files between units. It made absolutely no sense why I should have go to a unit to delete a show that I just transfered, watched, and deleted.

I haven't tested it outside of 7.2, so let me know if you find any issues. I plan on taking the latest OS as soon as I have worked out all of my pet peeves. Here they are if you're interested or are willing/able to help out.

Thanks to all at the DDB who make sharing this information possible.

WARNING:

I have removed the original version due to a probable bug. There is a new version that runs on THD and S2 written in tcl located here (http://www.dealdatabase.com/forum/showthread.php?65519-Transfer-and-Delete-THD). Please use that version.

jkozee
02-04-2007, 11:07 AM
I've uploaded a new version that fixes a bug that was not allowing it to watch the log when the logs were rolled.

mstbone67a
03-10-2007, 10:38 PM
have you tested this with other sw besides 7.2 yet?

thanks

cspot
03-13-2007, 05:28 PM
working on a series 2 with 4.01b

nice job.....

As far as the screesaver, I have it working to blank, but the old method of detecting the show has been "un"paused no longer works.

The pause is detected as it was before on Series 1, and the screen blanks, just need to uncover a new method to detect that play has been pressed.

Chuck

mstbone67a
12-16-2007, 11:11 PM
did anyone ever use this on a 2.5 ie... an r10 or such?

StanSimmons
12-19-2007, 10:10 AM
It worked on my v6.2 DTiVo, but didn't on my S2DT v9.1a box.

Below is the relevant info in the /var/logs/tvlog on my v9.1a TiVo:


Dec 19 13:53:36 (none) TvHttpDownloadModule[8875]: RequestUrl: http://10.0.0.51/download/Family%20Guy.TiVo?Container=%2FNowPlaying&id=396251&Format=video%2Fx-tivo-mpeg
Dec 19 13:53:36 (none) TvHttpDownloadModule[8875]: RequestUrl: http://10.0.0.51/download/Family%20Guy.TiVo?Container=%2FNowPlaying&id=396251&Format=video%2Fx-tivo-mpeg
Dec 19 13:53:36 (none) TvHttpDownloadModule[8875]: download sid=D10D9AFD391E42E1, rid=396251, off=0
Dec 19 13:53:36 (none) TvHttpDownloadModule[8875]: start new download: sid=D10D9AFD391E42E1, rid=396251, range=0/0, contentType=MPEG-PS
Dec 19 13:53:36 (none) TvVideoNetworkTransfer[233]: Estimated stream size is 855638016 bytes
Dec 19 13:53:36 (none) TvVideoNetworkTransfer [233]: Creating Transfer reason (NetworkWatch), contentype 1
Dec 19 13:53:36 (none) TvNetworkSharedPolicy[233]: A NetworkWatch transfer. Active: 0, Available: 1
Dec 19 13:53:36 (none) mediamgr[233]: AddNetworkSection Handle(1585719608) Count(1)
Dec 19 13:53:37 (none) TvMediaNetworkTransfer[233]: (1585719608) FActive false)
Dec 19 13:53:37 (none) TvNetworkSharedPolicy[233]: Shared CheckActivePolicy with 1 states, reason NetworkWatch
Dec 19 13:53:37 (none) TvMediaNetworkTransfer[233]: (1585719608) FActive false)
Dec 19 13:53:37 (none) TvNetworkSharedPolicy[233]: NActiveState: 0, max: 1
Dec 19 13:53:37 (none) TvMediaNetworkTransferOutMpeg[233]: First resume at offset 0
Dec 19 13:53:37 (none) TvMediaNetworkTransfer[233]: (1585719608) starting new thread
Dec 19 13:53:37 (none) TvMediaNetworkTransferOutMpeg[11814]: (1585719608) ThreadStart Connecting ReadAheadCache
Dec 19 13:53:37 (none) TvMediaNetworkTransfer[11814]: (1585719608) Beginning transfer
Dec 19 13:54:51 (none) TvHttpDownloadActivity[11810]: status TransferStatus (ttg): 63129349 bytes, 7.3%, 6.77 Mb/s, 0:01:14
Dec 19 13:55:59 (none) TvHttpDownloadActivity[11808]: status TransferStatus (ttg): 126284667 bytes, 14.7%, 7.43 Mb/s, 0:02:22
Dec 19 13:57:07 (none) TvHttpDownloadActivity[11810]: status TransferStatus (ttg): 189503701 bytes, 22.1%, 7.43 Mb/s, 0:03:30
Dec 19 13:58:14 (none) TvHttpDownloadActivity[11808]: status TransferStatus (ttg): 252594413 bytes, 29.5%, 7.54 Mb/s, 0:04:37
Dec 19 13:59:22 (none) TvHttpDownloadActivity[11810]: status TransferStatus (ttg): 315589601 bytes, 36.8%, 7.42 Mb/s, 0:05:45
Dec 19 14:00:34 (none) TvHttpDownloadActivity[11810]: status TransferStatus (ttg): 378665529 bytes, 44.2%, 7.0 Mb/s, 0:06:57
Dec 19 14:01:51 (none) TvHttpDownloadActivity[11808]: status TransferStatus (ttg): 441913975 bytes, 51.6%, 6.62 Mb/s, 0:08:13
Dec 19 14:02:59 (none) TvHttpDownloadActivity[11807]: status TransferStatus (ttg): 505024529 bytes, 59.0%, 7.47 Mb/s, 0:09:21
Dec 19 14:04:06 (none) TvHttpDownloadActivity[11810]: status TransferStatus (ttg): 568090710 bytes, 66.3%, 7.49 Mb/s, 0:10:28
Dec 19 14:05:11 (none) TagManagerStats[233]: <Warning> TimelinePlayback stats in msec: mean = 0, variance = 0, samples = 53426, min = 0, max = 8, Min = 0, Max = 13, threshold = 100%, max samples = 72000
Dec 19 14:05:15 (none) TvHttpDownloadActivity[11810]: status TransferStatus (ttg): 631090044 bytes, 73.7%, 7.34 Mb/s, 0:11:37
Dec 19 14:06:23 (none) TvHttpDownloadActivity[11807]: status TransferStatus (ttg): 694182127 bytes, 81.1%, 7.44 Mb/s, 0:12:45
Dec 19 14:07:31 (none) TvHttpDownloadActivity[11810]: status TransferStatus (ttg): 757428886 bytes, 88.5%, 7.42 Mb/s, 0:13:53
Dec 19 14:08:44 (none) TvHttpDownloadActivity[11810]: status TransferStatus (ttg): 820526487 bytes, 95.8%, 6.93 Mb/s, 0:15:05
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[11814]: (1585719608) Transfer done
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[11814]: (1585719608) Sending Done event
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[11814]: (1585719608) Mainloop done
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[11814]: (1585719608) thread ending
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[233]: (1585719608) thread already stopped
Dec 19 14:09:03 (none) TvHttpDownloadActivity[11807]: complete: total=837634251
Dec 19 14:09:03 (none) TvHttpDownloadActivity[11807]: download activity cleaned up
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[233]: (1585719608) FActive false)
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[233]: (1585719608) thread already stopped
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[233]: (1585719608) joining thread
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[233]: (1585719608) thread joined
Dec 19 14:09:03 (none) TvMediaNetworkTransfer[233]: (1585719608) going away

Throg
03-28-2011, 06:26 PM
I am running 2 S2 SA units with 9.3.2b software. This script isn't doing what I want it to do. That is delete the transferred show from the 'server' tivo. Has anyone gotten it to work with 9.3.2b?

jkozee
09-20-2011, 12:51 AM
There's a new version for THD units here (http://www.dealdatabase.com/forum/showthread.php?65519-Transfer-and-Delete-THD&p=312882#post312882).

Throg
09-20-2011, 09:51 PM
And that new THD version will work on my S2 SA units I mentioned in the post just above yours?

jkozee
09-21-2011, 11:05 PM
I have only tested that version on a TivoHD running 11.0k. I do not have any S2 units to test on. If the logs are the same for your S2 9.3.2b then it should work just fine. Specifically, the program looks for these lines in the tvlog file:



Transfer Begin
Jan 01 02:47:58 (none) TvMediaNetworkTransferOutNative[330]: [1577883304] resuming rec 1771292 fd 50 at offset 0

Transfer In Progress
Jan 01 02:48:32 (none) TvMediaNetworkModule.C[29055]: TransferStatus(NativeOut), id 1577883304, nt 1, 112852992 of 870318080 bytes, 12.9%, 26.2 Mb/s, 00:00:34

Transfer Stop
Jan 01 02:48:41 (none) TvMediaNetworkTransferOutNative[29055]: [1577883304] transfer fd 50 complete 141950976 bytes transferred, status: 0x0, i/o error: 1

jkozee
09-28-2011, 12:16 AM
I just posted a port of the THD written completely in TCL. I suspect the version posted above has a memory leak. It is still only tested on THD units, but would be a better starting point to get something running on other hardware/os versions.

Throg
09-28-2011, 07:36 PM
Is that what's in the first post of this thread? The only other attachment is your new THD build in post #8.

jkozee
09-29-2011, 12:55 AM
Sorry for the confusion. The attachment in post #1 of this thread is the original release written in C and likely has a memory leak. I left it there with a warning for anyone that wanted to view the orginal code. The link in post #8 above is to a new thread for a THD version, and post #1 of that thread has the new tcl only version for THD. If you want to get a version running on your S2 9.3.2b, I would recommend reviewing your tvlog changes on a "server" tivo while transfer is started and stopped from another "client" tivo. If the logs include lines formatted the same as those in post #10 of this thread then the THD version should work for you. Otherwise, you will need to replace the "ProcessLine_S3" function with one that looks for the appropriate lines. All this program is doing is matching specific lines of the tvlog file to determine transfer activity.

Hope that helps and clears up the confusion.

Throg
09-29-2011, 07:58 PM
Yes, it really does. I just hope I can find some time to dig in and make it work soon. It doesn't sound like brain surgery.

Throg
10-08-2011, 01:31 AM
The latest THD build in post #8 works for me. It is so nice to see the program gone after it's been transferred (now a 1-step process). Thanks.

jkozee
10-08-2011, 12:50 PM
Glad to hear that.