1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New program for 1 step TTG downloads, decryption, encoding - kmttg

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Mar 15, 2008.

  1. Feb 2, 2009 #481 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    John, yes it should be no problem if you take care to avoid simultaneous downloads from same Tivos. Both can obtain listings from the Tivo at the same time for sure. As far as downloading more than 1 show at a time from same Tivo last I checked that generally does not work, however I think there have been instances where it sometimes does work so I can't say for sure if it's an issue as I haven't tried it lately. In any case that situation should be avoided (too much load for Tivo to handle) but the worse that can happen is one of the downloads will fail.
     
  2. Feb 2, 2009 #482 of 10411
    jangelj

    jangelj New Member

    54
    0
    Oct 23, 2002
    Thanks Yoav and Moyekj,
    I'll just be sure to schedule kmttg's to run at different times to avoid simultaneous downloads.

    John
     
  3. Feb 4, 2009 #483 of 10411
    abnersnell

    abnersnell New Member

    18
    0
    Mar 3, 2002
    Just curious if this was ever resolved or if there was a workaround?

    Thanks for a wonderful program!

    Abner
     
  4. Feb 4, 2009 #484 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    Nope. It's really out of my hands at this point. One workaround which would probably work is to run kmttg as a repeated scheduled batch job instead of a service. ("perl kmttg.pl -b" runs a single auto download loop and then exits)
     
  5. Feb 5, 2009 #485 of 10411
    berkshires

    berkshires New Member

    463
    0
    Feb 22, 2007
    Some requests:

    1. In the config window pasting text over highlighted existing text appends instead of replaces.

    2. Could you make the episode # 3 digits with leading 0's... ie. ep 3 is 003?

    3. Could you make the file naming fields conditional; ie. if there is an episode number use this text plus the number in creating the name?

    4. Could you make fields for original air date - this would make sorting a rerun series easier if it is run randomly by the network and has no episode #'s.
     
  6. Feb 7, 2009 #486 of 10411
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    Seems like there's a problem with kmttg when a program title contains an apostrophe... in the particular case I'm looking at, the title is:

    Damages - I Agree, It Wasn't Funny

    the curl command and the rest of the commands all try to handle the name:

    Damages - I Agree, It Wasnt Funny

    which of course doesn't work at all, as that's not what's on the TiVo.
     
  7. Feb 7, 2009 #487 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    Dropping apostrophe is intentional, but everything still works since the apostrophe is dropped starting with the .TiVo file name. When downloading from Tivo it drops the apostrophe already if there is one in the name and from then on the other steps just use name without apostrophe. I have that title on one of my Tivos and just tried it to confirm. Here's from the console (I have download plus metadata enabled). Notice how the curl output file drops apostrophe and the metadata file also doesn't have apostrophe.

    Damages - I Agree, It Wasn't Funny
    Recorded Wed 2/4/2009 10:00 PM on 17=FXP, Duration = 61 mins
    Patty begins to question Ellen's motives for returning to the firm; Patty tries to stop a corporate merger that she thinks is connected to Christine Purcell's murder.
    >> CREATING C:\home\dvd\Damages - I Agree, It Wasnt Funny.mpg.txt ...
    "c:\home\kmttg testing\curl\curl.exe" --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar "C:\Users\Kevin\AppData\Local\Temp\cookies3380" --url "https://192.168.1.101:443/TiVoVideoDetails?id=2467539" --output "C:\home\dvd\Damages - I Agree, It Wasnt Funny.mpg.txt_tmp"
    --DONE--
    >> DOWNLOADING c:\home\dvd\Damages - I Agree, It Wasnt Funny.TiVo ...
    "c:\home\kmttg testing\curl\curl.exe" --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar "C:\Users\Kevin\AppData\Local\Temp\cookies3380" --url "http://192.168.1.101:80/download/Damages.TiVo?Container=%2FNowPlaying&id=2467539" --output "c:\home\dvd\Damages - I Agree, It Wasnt Funny.TiVo"
     
  8. Feb 7, 2009 #488 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Good catch.

    I've also noticed issues with shows that have other special characters in their titles, like the $ dollar sign character. It seems to download the .TiVo file, but it truncates the name, and the remaining steps don't know what the new truncated name is.
     
  9. Feb 7, 2009 #489 of 10411
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    In my case it didn't work, as the download failed:

    >> DOWNLOADING I:\kmttg\Damages - I Agree, It Wasnt Funny_Wed_Feb_04.TiVo ...
    "C:\Documents and Settings\Eric.TALTOS\Desktop\kmttg\curl\curl.exe" --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar "C:\DOCUME~1\ERIC~1.TAL\LOCALS~1\Temp\cookies1756" --url "http://192.168.1.5:80/download/Damages.TiVo?Container=%2FNowPlaying&id=468054" --output "I:\kmttg\Damages - I Agree, It Wasnt Funny_Wed_Feb_04.TiVo"
    I:\kmttg\Damages - I Agree, It Wasnt Funny_Wed_Feb_04.TiVo size=0.00 MB elapsed=00:00:02 (0.00 Mbps)
    --DONE--
    >> DECRYPTING I:\kmttg\Damages - I Agree, It Wasnt Funny_Wed_Feb_04.TiVo ...
    "C:\Documents and Settings\Eric.TALTOS\Desktop\kmttg\tivodecode\tivodecode.exe" --mak MAK --out "I:\kmttg\Damages - I Agree, It Wasnt Funny_Wed_Feb_04.mpg" "I:\kmttg\Damages - I Agree, It Wasnt Funny_Wed_Feb_04.TiVo"
    I:\kmttg\Damages - I Agree, It Wasnt Funny_Wed_Feb_04.mpg size=0.00 MB elapsed=00:00:00 (0.00 Mbps)
    *ERROR* tivodecode failed (exit code: 9) - check above C:\Documents and Settings\Eric.TALTOS\Desktop\kmttg\tivodecode\tivodecode.exe command
    read chunk data: No error
    seek: No error
    Encryption by QUALCOMM ;)

    Perhaps something else went wrong, but 4 other shows (one before and 3 after) worked fine all as part of the same batch. Only the Damages download failed.

    Running it again alone, the download seems to be going fine.
     
  10. Feb 7, 2009 #490 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    Something else must have happened as the console shows it was done with size 0 and it happened very quickly. Since download is working now I guess problem solved.
     
  11. Feb 7, 2009 #491 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    I already have a bunch of special characters that can cause problems taken care of including:
    / * " ' : ; ! ? & \
    I could see where $ may cause a problem so should probably add it to the list.
     
  12. Feb 8, 2009 #492 of 10411
    jlbarr

    jlbarr New Member

    2
    0
    Mar 29, 2008
    When having auto transfer do a quick fix or encode after download it is failing. Processing the same file through the gui however completes normally. Anyone else having this trouble?
     
  13. Feb 8, 2009 #493 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    Yes, it's a known issue with VRD that VRD QuickStream Fix doesn't run in service mode - look up starting at post 483 for given workaround.
     
  14. Feb 8, 2009 #494 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    1. Don't know how to get Perl Tk to do that easily. Hit backspace to delete selection and then do the paste as a workaround.
    2. Made change for next release
    3. Not sure what you want. If you have [EpisodeNumber] as part of your File Naming template then it will put the number there if available, empty string if not.
    4. Original air date is only available in extended details for a show which requires additional html calls for each individual show to obtain, so it's really not practical to make a bunch of extra calls to gather extended details for each show when gathering Tivo playlist (would slow down the process a lot).
     
  15. Feb 9, 2009 #495 of 10411
    berkshires

    berkshires New Member

    463
    0
    Feb 22, 2007
    For 3 I am looking for text conditional on a field being non-NULL, ie. Star Trek ep# 003 - The Corbomite Maneuver ... "ep#" needs to be conditional upon [EpisodeNumber] not being NULL.

    Thanks for 2
     
  16. Feb 12, 2009 #496 of 10411
    nvt

    nvt New Member

    60
    0
    Aug 19, 2003
    MD
    Love the program and works well except encoding
    Run it with Comskip and Comcut and then select encode using the iPod Hi and Low res options
    Both produce an encoded file but the audio gets out of synch. I can take the output from the comcut and encode using anther tool (Videora) and no synch problem
    I'd appreciate any thoughts/feedback
     
  17. Feb 12, 2009 #497 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    Running the source mpeg2 file through VideoRedo before encoding sometimes fixes the sync issue introduced following an encode. If Videora has batch capabilities then you can setup your own encoding profile in kmttg using it instead of ffmpeg. Consult the kmttg documentation or the existing .enc files under encode folder as examples of how to set it up, or list how to do it batch mode with Videora and I can create a .enc file for you.
     
  18. Feb 12, 2009 #498 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    I'll need to think about this some more as it can get complicated depending what you are asking for. Without thinking too much about it yet I'm thinking something generic like [xxx=keyword] means include xxx only if keyword exists. So in your example to achieve what you want then you would have the following as part of the file name template:
    [ep#=EpisodeNumber][EpisodeNumber]
    Hence for above you would get something like "ep#101" if EpisodeNumber exists and you would get empty string otherwise. Of course these things always sound easier in English than in a program so I'll have to see how easy that would be to implement, but before I bother is that the kind of thing you are looking for?
     
  19. Feb 13, 2009 #499 of 10411
    berkshires

    berkshires New Member

    463
    0
    Feb 22, 2007
    Yes. How about making the format ["TEXT1" EpisodeNumber "TEXT2"] so TEXT1, TEXT2 and the episode number would only appear if there is an episode number...you already make the field conditional on its existence I believe...so then you could make the whole thing conditional altogether.

    "TEXT1" and "TEXT2" params would be optional, so [EpisodeNumber] would still work as it always has.
     
  20. Feb 14, 2009 #500 of 10411
    moyekj

    moyekj Well-Known Member

    11,140
    28
    Jan 23, 2006
    Mission...
    OK, I've got a working prototype of this and probably will release an update with this enhancement tomorrow (along with some other fixes).
     

Share This Page