Easier to use pyTivo - pyTivo Desktop

Discussion in 'TiVo Coffee House - TiVo Discussion' started by Dan203, Jan 23, 2017.

  1. Apr 10, 2017 #221 of 2506
    eherberg

    eherberg Active Member

    396
    225
    Feb 16, 2011

    Advertisements

    No problem. One question: Does your version change the timing that was done from pyTivo itself? Just curious - as wmcbrine's pyTivo (using the tivodecode @moyekj patched for windows) has no problems. If that works with no timing issues, did the timing of the call change in this version of pyTivo?
     
  2. Apr 10, 2017 #222 of 2506
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    55,193
    7,901
    Apr 17, 2000
    Nevada
    Mine changes the way the decryption is done. The original uses a pipe to feeds the data directly into tivodecode, so it's actually decoded as the data is downloaded. tivolibre doesn't support that method of input so I had to make it a two step process where the data is written to disk first, then that's fed into tivolibre as a file after it completes. My theory here is that python uses an asyncronous close call after the file completes. Which means that the code after the call to close is executed immediately, even if the file hasn't actually been released yet. This can lead to weird timing issues where if tivolibre tries to open it before it's ready it will be denied access, which it apparenly treats as if the file isn't there at all.

    If the sleep doesn't work then I'm going to add an option to enable the old tivodecode method and allow the user to choose. I added the tivolibre one because tivodecode does not work with TS files and tivolibre does, but if tivolibre is causing issues then I don't want to force people to use it. I can add another option so the user can choose which one to use.
     
    Mikeguy likes this.
  3. Apr 10, 2017 #223 of 2506
    moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
  4. Apr 10, 2017 #224 of 2506
    lpwcomp

    lpwcomp Well-Known Member

    9,461
    298
    May 6, 2002
    John's...
    Any chance that the rename (formally delete) step is being executed before tivolibre actually starts?
     
  5. Apr 10, 2017 #225 of 2506
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    55,193
    7,901
    Apr 17, 2000
    Nevada

    Advertisements

    The rename only gets called if there is an exception
     
  6. Apr 10, 2017 #226 of 2506
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    55,193
    7,901
    Apr 17, 2000
    Nevada
    You're right, it does work! :up: When me and wmcbrine were discussing this via PM he said he didn't think tivolibre worked that way and I just assumed he was correct. But I just ran some tests and it works fine using the pipe method. I'm going to switch the code over to using that method for the next release.
     
  7. Apr 10, 2017 #227 of 2506
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    55,193
    7,901
    Apr 17, 2000
    Nevada
    A new build has been posted. This one removes the two step decryption process and reverts to the old decrypt as it downloads option it had before, but using tivolibre instead of tivodecode.
     
    aaronwt and krkaufman like this.
  8. Apr 10, 2017 #228 of 2506
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    55,193
    7,901
    Apr 17, 2000
    Nevada
    I thinking about possible feature enhancements going forward and I'm wondering if there is anything you guys wish this did that it doesn't do now?

    One idea I had was automatic downloads. So you could set up a series to automatically download new episodes to your PC when they completed. Not sure how useful that would be to people, but I think it would be relatively easy to do.

    Any other ideas you guys have?
     
    Mikeguy likes this.
  9. Apr 10, 2017 #229 of 2506
    eherberg

    eherberg Active Member

    396
    225
    Feb 16, 2011
    And .... (pause for dramatic impact) ... Success!

    All transfer tests I've tried have been successful. Tried using Transport Stream and a successful decoded .ts file left in it's place. Tried using Program Stream and a successful decoded .mpg file left in it's place.

    That seems to have solved whatever was going on with my machine. :)

    Thanks for all of the work on it!
     
  10. Apr 10, 2017 #230 of 2506
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    55,193
    7,901
    Apr 17, 2000
    Nevada
    No problem. Thanks for sticking with it and going through my half dozen updates in as many days.
     
    bradleys likes this.
  11. Apr 10, 2017 #231 of 2506
    krkaufman

    krkaufman TDL shepherd

    16,744
    3,189
    Nov 25, 2003
    I haven't yet started using pieTivo (easy-as-pie pyTivo ;)), but one thing I would find handy, as a laptop user jumping between houses and TiVo accounts, is the ability to quickly switch the account-specific settings. Being able to automatically recognize which network I'm on would be nice, but just being able to select a different configuration and restart would be handy.

    As I said, I haven't used the product, so what I'm requesting may make zero sense, or already exist.
     
  12. Apr 10, 2017 #232 of 2506
    krkaufman

    krkaufman TDL shepherd

    16,744
    3,189
    Nov 25, 2003
    One thought I've had is if pyTivo is always running in the background, I was wondering if there was some way it could detect rebooted DVRs and send out an alert -- with an added bonus if the alert could identify any recordings that were disrupted and likely truncated.
     
  13. Apr 11, 2017 #233 of 2506
    aaronwt

    aaronwt UHD Addict

    23,640
    1,299
    Jan 31, 2002
    Northern...
    I'll need to try out this new version sometime.
     
  14. Apr 11, 2017 #234 of 2506
    Mikeguy

    Mikeguy Well-Known Member

    27,636
    9,210
    Jul 28, 2005
    And so, that would be the equivalent of an auto-archive, which could be handy for shows that you know you want to archive. Would be handy.
    Another: automatic commercial edit?
     
  15. Apr 11, 2017 #235 of 2506
    Redoctobyr

    Redoctobyr Active Member

    313
    90
    Jun 21, 2008
    Dan203, thank you very much for making this! I'm new to pyTivo, but with your version from a few days ago, 1.5.5, I was able to get it installed, and working, without fuss or incident. Both on a Win7 laptop, and a Win10 laptop.

    I don't know if this is the right place to ask questions, please tell me if I should ask somewhere else. I just ordered a Bolt to replace my pair of Series 2s.

    Before it arrives, I'm trying to copy my recorded shows off the Series 2s, so that I can transfer them to the new Bolt. I have 2 different units, both with upgraded storage, so there are several hundred recordings total.

    I have successfully copied some shows to my computer so far. I want to start getting them pulled off the old machines, which will be deactivated 10 days after setting up the Bolt. I have two basic pyTivo questions, I'm hoping someone can help:
    - Is it possible to select the recordings in-bulk, to queue them for transferring? I can go folder-by-folder, file-by-file, but if there's a good way to select groups of files all at once, that would be great. Even if I had to pull them using other software, perhaps (TiVo Desktop?).
    - Can pyTiVo push them from my computer to the new Bolt, in bulk? I don't currently see any Push options, I can only share a folder using pyTivo. Then I'd have to individually select each one to be pulled, using the TiVo, which would be quite cumbersome. Will I see a Push option in pyTivo when the Bolt is available on my network? I don't know if maybe the Series 2s don't support Push, perhaps.

    Please forgive the basic questions. Like I said, I'm brand new to pyTivo, which seems like a very cool program. Thank you.
     
  16. Apr 11, 2017 #236 of 2506
    lpwcomp

    lpwcomp Well-Known Member

    9,461
    298
    May 6, 2002
    John's...
    Push hasn't worked at all for any model for about 8 months.
     
  17. Apr 11, 2017 #237 of 2506
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    55,193
    7,901
    Apr 17, 2000
    Nevada
    Yeah sorry, neither of those are currently possible. As lpwcomp pointed out push no longer works in any software. It required a function on TiVo's server to work and they disabled that function a while back. Bulk download wasn't something I really considered for my UI. But it's something I'll add to the list. However I wont be able to do it for at least a few days, so probably not going to do you any good. I think kmttg has the ability to do bulk transfers so perhaps you should look at using that instead.
     
  18. Apr 11, 2017 #238 of 2506
    Redoctobyr

    Redoctobyr Active Member

    313
    90
    Jun 21, 2008
    Thank you guys for the replies. That's unfortunate about not being able to push things to a TiVo any more.

    Shame on me if I don't at least ask the question: is there any good way to transfer lots of recordings to the new Bolt? Maybe the current TiVo UI, with faster hardware, makes it practical to select a LOT of shows to pull from a computer. But with my Series 2s, at least, that would be a pretty painful process to get started for all the recordings.

    My Bolt hasn't shipped yet, there is apparently a big rush of similar orders from other people who used this Bolt promotion. So I may not even get it for a week or so, I'm not sure. If it was practical to add group-selecting to the pyTivo UI, that would be awesome. And I will try to take a look at kmttg, thanks.
     
  19. Apr 11, 2017 #239 of 2506
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    55,193
    7,901
    Apr 17, 2000
    Nevada
    Not really. In fact since you're going to have to pull them one by one anyway you might be better off just waiting for the new TiVo to arrive and doing a direct TiVo to TiVo transfer instead. Those transfers are a bit faster because they don't require the same encryption to be applied as when transferring to a PC. They also retain more of the original metadata then going to the PC first.
     
  20. Apr 11, 2017 #240 of 2506
    sar840t2

    sar840t2 Member

    245
    19
    Mar 1, 2003
    Edmonds,...
    Just be aware that sometimes queued-up copies from one TiVo to another fail without any notification (speaking from experience).

    When I did my most recent bulk copying from one TiVo to another, I did them in batches of about 10 recordings at a time, and then used kmttg pointed at each TiVo to compare the file size and duration of each recording on the source and destination TiVo.
     

Share This Page

spam firewall

Advertisements