PDA

View Full Version : Extraction of TY/TMF/ASX directly from tivoweb and a problem



ciper
07-19-2006, 07:11 PM
A great module exists that allows you to list the shows on the tivo and download them to your PC as a TMF or a TY or an ASX right from the tivoweb interface.
Here is an example of how it looks http://i5.tinypic.com/20h7n69.jpg
The latest version I could find was modified by stealthdave and can be downloaded here http://www.dealdatabase.com/forum/showpost.php?p=149623&postcount=23
edit: problem solved read post #3

Now I need help troubleshooting. Everything worked fine until I rebooted my tivo yesterday.

When I click a link within the module instead of getting a "save-as" dialog I see a list of folders on the ftp site.

Index of ftp://tivo:3105/ty/{Late Night With Conan O'Brien}{2006-07-18}{Rosario Dawson Kevin Pollak}{12.37 AM Wed Jul 19, 2006}{KNTV}{2983769}.ty
Up to higher level directory
Directory: tmf 1/1/1972 12:00:00 AM
Directory: ty 1/1/1972 12:00:00 AM
Directory: ty+ 1/1/1972 12:00:00 AM
Directory: xml 1/1/1972 12:00:00 AM
Directory: txt 1/1/1972 12:00:00 AM
Directory: bat 1/1/1972 12:00:00 AM
Directory: asx 1/1/1972 12:00:00 AM
File: phoenix.txt 5/31/2006 7:00:00 PM
File: shutdown.txt 5/31/2006 7:00:00 PM

Here is the log when I click one of the broken TY links


03:27:17:AM - 227 Entering Passive Mode (172,18,19,51,12,32).
03:27:17:AM - 502 Command not implemented "SIZE /ty/{30-Minute Meals}{2006-03-18}{Chi
cken Still Never Lets You Down}{02.30 PM Tue Jul 18, 2006}{FOODP}{2983643}.ty"
03:27:17:AM - 502 Command not implemented "MDTM /ty/{30-Minute Meals}{2006-03-18}{Chi
cken Still Never Lets You Down}{02.30 PM Tue Jul 18, 2006}{FOODP}{2983643}.ty"
03:27:17:AM - 550 error, can't find "{30-Minute Meals}{2006-03-18}{Chicken Still Neve
r Lets You Down}{02.30 PM Tue Jul 18, 2006}{FOODP}{2983643}.ty"
03:27:17:AM - 227 Entering Passive Mode (172,18,19,51,12,32).
03:27:17:AM - 250 Directory change successful.
03:27:17:AM - 150 Opening ASCII mode data connection for file list.
03:27:17:AM - 226 Transfer complete.


In my browser I entered ftp://tivo:3105/ty/ . I was able to see the list of shows and was able to download a file.
I went back to the modules page and compared the link to the show I had just downloaded. There are some characaters missing?

They are very long links so Ill paste a shortened version, web module first then ftp.

Jul%2019,%202006%7D%7BKNTV%7D.ty
Jul%2019,%202006%7D%7BKNTV%7D%7B2983769%7D.ty

Here are the complete links

ftp://tivo:3105/ty/%7BLate%20Night%20With%20Conan%20O'Brien%7D%7B2006-07-18%7D%7BRosario%20Dawson%20Kevin%20Pollak%7D%7B12.37%20AM%20Wed%20Jul%2019,%202006%7D%7BKNTV%7D.ty
ftp://tivo:3105/ty/%7BLate%20Night%20With%20Conan%20O'Brien%7D%7B2006-07-18%7D%7BRosario%20Dawson%20Kevin%20Pollak%7D%7B12.37%20AM%20Wed%20Jul%2019,%202006%7D%7BKNTV%7D%7B29 83769%7D.ty

Any idea why the web module is truncating the links?

stealthdave
07-20-2006, 07:49 PM
A quick look at the code made me think of this fix. Using your favorite text editor, change line 21 of extract_mfs_ftp.itcl from this:


set mfs_ftp_name_detail "5"

to this:


set mfs_ftp_name_detail "9"

This will change the name of the downloaded file to the fsid, so you'll get a file named something like 123456.ty or 123456.tmf. The upside is that this should definitely work. The downside is that you get a file name that means nothing to human eyes.

My guess is that one of three things happened. Either (1) the version of MFS_FTP that you are using is set to a different name detail than the extract module, (2) your version of MFS_FTP has changed how the name is generated, or (3) your TiVo has updated how it stores program information wherever it is that MFS_FTP and/or the extract module get their program information.

I haven't been following MFS_FTP development lately, but if that's where the change has occurred, then the extract module could probably be updated to build its names in the same way.

- Stealth Dave

ciper
07-25-2006, 05:29 AM
Problem solved with help from stealthdave
The configuration between MFS_FTP and the tivoweb module must match or all links are invalid

MFS_FTP settings.tcl
set info(name_detail) is defaulted to 5

Tivoweb module extract_mfs_ftp.itcl
set mfs_ftp_name_detail is defaulted to 5

You can change them to anything you like as long as they match!


Stealthdave: You helped me figure it out :) I tried many variations of the name detail setting.

set mfs_ftp_name_detail was set to 6 in my file originally. (perhaps my mistake?). Changing it back to 5 fixed it and now everything works perfectly.

stealthdave
07-25-2006, 06:02 PM
Dont set set mfs_ftp_name_detail "6" or you wont be able to download anything!

Stealthdave: You helped me figure it out :) I tried many variations of the name detail setting.

set mfs_ftp_name_detail was set to 6 in my file originally. (perhaps my mistake?). Changing it back to 5 fixed it and now everything works perfectly.
Probably my fault, actually. Detail 6 is just detail 5 with the fsid tacked onto the end. Detail 6 was added to MFS_FTP at my request to more easily support my TyStreamer app (which no longer uses MFS_FTP, but I still believe that having the fsid in the name is useful). So when I created the module, I made detail 6 the default because that's what I used. Detail 5 is the default setting for MFS_FTP. As long as name_detail matches what's in your mfs_ftp setup, it should work. You could have just as easily changed mfs_ftp's name detail to 6. Detail 9 should work regardless of what you have MFS_FTP set to.

In any case, I'm glad this resolved your issue.

ciper
07-27-2006, 05:26 AM
That helps me to understand why it was failing. Im going to edit my other post.