Easier to use pyTivo

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

  1. JoeKustra

    JoeKustra in the other Alabama TCF Club

    19,822
    3,618
    Dec 7, 2012
    Ashland, PA...

    Advertisements

    Please don't or at least make it optional. You're trying to fix a problem that is not your fault. My PC is using WiFi. My basic Roamio is using a wireless bridge. I like having 100Mbps transfers.

    This reminds of way back when I had to put code into programs to flush the pre-fetch cache.
     
    aaronwt likes this.
  2. gonzotek

    gonzotek tivo_xml developer

    2,538
    59
    Sep 24, 2004
    Outside...
    IMO, Dan should take a crack at it if he wants to, but it should absolutely be an optional feature. It might not be his fault, but you do what you gotta do to workaround things when it's a closed system, as TiVo transfers are.

    Some people will want the fastest transfers possible, and will be perfectly ok with occasional glitches(or perhaps don't suffer much from glitching even with fast transfers). Some will want 'perfect', glitch-free transfers(and perhaps can't even achieve watchable transfers without the intentional slowing). And some might want to switch between both modes, depending on the specific content (e.g. just some repeat episodes of some tv series I want to bring on vacation vs. a live special that is unlikely ever to be aired again).
     
    Mikeguy likes this.
  3. reneg

    reneg Well-Known Member

    1,121
    221
    Jun 19, 2002
    I prefer using an external tool to limit bandwidth. It's a Tivo problem. Tivos behave differently over generations and models of Tivos.
     
  4. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    51,803
    6,339
    Apr 17, 2000
    Nevada
    If I were to do it it would absolutely be an option, off by default, so don't worry.

    One thing I thought about is having an automatic option tied to the retry option. Have it slow the transfer more and more until it gets a clean copy.
     
    Mikeguy, gonzotek and JoeKustra like this.
  5. alleybj

    alleybj Member

    284
    10
    Dec 6, 2000
    atlanta, ga usa

    Advertisements

    That would be awesome if we could get TS transfers with no errors
     
    Mikeguy likes this.
  6. daveh88

    daveh88 New Member

    20
    1
    May 19, 2018
    Florida
    Any ideas what I should try? My setup is a Roamio OTA and two minis all wired directly to my Netgear R6250 router. No idea why I get no tivos found. Thanks.
     
  7. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    51,803
    6,339
    Apr 17, 2000
    Nevada
    First thing I would try is go to settings, turn off Zeroconf, then close desktop, exit pytivo and reboot the PC. If that doesn't work try temporarily disabling the firewall. Then exit pyTivo completely and restart it. If that still doesn't work then I'm stumped. You don't have any weird network settings do you? Like the PC is on a different subnet then the TiVos?
     
  8. BilliJoe

    BilliJoe Been around the block a few times

    18
    11
    Oct 2, 2016
    Planet Earth
    Not sure if pyTivo Desktop uses curl or wget, but there are command line options for both to limit speed.

    curl curl - How To Use
    --limit-rate <speed>
    Specify the maximum transfer rate you want curl to use - for both downloads and uploads. This feature is useful if you have a limited pipe and you'd like your transfer not to use your entire bandwidth. To make it slower than it otherwise would be. The given speed is measured in bytes/second, unless a suffix is appended. Appending 'k' or 'K' will count the number as kilobytes, 'm' or 'M' makes it megabytes, while 'g' or 'G' makes it gigabytes. Examples: 200K, 3m and 1G. If this option is used several times, the last one will be used.

    wget - GNU Project - Free Software Foundation
    --limit-rate=amount
    Limit the download speed to amount bytes per second. Amount maybe expressed in bytes, kilobytes with the k suffix, or megabytes with the m suffix. For example, --limit-rate=20k will limit the retrieval rate to 20KB/s. This is useful when, for whatever reason, you don't want Wget to consume the entire available bandwidth. This option allows the use of decimal numbers, usually in conjunction with power suffixes; for example, --limit-rate=2.5k is a legal value. Note that Wget implements the limiting by sleeping the appropriate amount of time after a network read that took less time than specified by the rate. Eventually this strategy causes the TCP transfer to slow down to approximately the specified rate. However, it may take some time for this balance to be achieved, so don't be surprised if limiting the rate doesn't work well with very small files.
     
  9. daveh88

    daveh88 New Member

    20
    1
    May 19, 2018
    Florida
    I think it was the firewall. Seems to be working now. Thanks for the help.
     
  10. Dougmeister

    Dougmeister Member

    123
    4
    Mar 28, 2007
    I exited pyTivo Desktop and pyTivo, then restarted and the icon does not re-appear.
     
  11. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    51,803
    6,339
    Apr 17, 2000
    Nevada
    You have to exit the tray app.

    I know the cause of this, but fixing it is a bit difficult. Basically the program I use to "compile" the python code into an exe extracts the python code, and all it's assets (like the icons), into the temp folder. After a while if you haven't stopped/started the server Windows thinks the icon files aren't being used and auto-deletes them.

    There are two potential fixes...

    1) Do something in the code to access the icons periodically so Windows doesn't delete them.

    2) Update the packager app as the new version has a feature to use a folder other then temp for the file so Windows wont see them as deleteable. (this is harder then it sounds because my whole build process is automated)
     
  12. Aug 1, 2018 #1732 of 2379
    Dougmeister

    Dougmeister Member

    123
    4
    Mar 28, 2007
    I hope I didn't confuse things. When I said "the icon does not re-appear", I should have said "the Tivo folder icon does not re-appear under "My Shows" on my Tivo Roamio."
     
  13. Aug 5, 2018 #1733 of 2379
    Dougmeister

    Dougmeister Member

    123
    4
    Mar 28, 2007
    So you understood my issue and there is no fix for the "Tivo" icon/folder disappearing from the Tivo itself every now and then?
     
  14. Aug 5, 2018 #1734 of 2379
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    51,803
    6,339
    Apr 17, 2000
    Nevada
    The share disapearing from the TiVo is common. The way TiVo detects shares is not that reliable. Restarting pytivo will sometimes work, but others you may have to reboot the TiVo itself.
     
    Dougmeister likes this.
  15. Aug 5, 2018 #1735 of 2379
    Dougmeister

    Dougmeister Member

    123
    4
    Mar 28, 2007
    Ok. Sorry to beat a dead horse ;-)

    Thanks for clarifying your answer!
     
  16. BilliJoe

    BilliJoe Been around the block a few times

    18
    11
    Oct 2, 2016
    Planet Earth
    Same results with a Bolt VOX here
     
  17. Dougmeister

    Dougmeister Member

    123
    4
    Mar 28, 2007
    How do I rename the folder/icon under "My Shows" that displays files from my computer?
     
  18. HerronScott

    HerronScott Well-Known Member

    7,506
    1,095
    Jan 1, 2002
    Staunton, VA
    I believe this name was a configuration option in pyTivo in the pytivo.conf file. I haven't installed pyTiVo Desktop yet so not sure of the best way to configure it this with Dan's version.

    [Now Playing on HERRONWHS]
    type=video
    path=D:\shares\Videos

    FYI, regarding your disappearing issue. I haven't had that issue here with TiVo Desktop and Windows 10 using Bonjour except when the PC is configured for sleep mode (I disabled that for my laptop when plugged into AC power).

    Scott
     
    Last edited: Aug 11, 2018
  19. Dougmeister

    Dougmeister Member

    123
    4
    Mar 28, 2007
    Thanks, Scott. FWIW, I'm running Windows 7 on a desktop and do not have sleep mode enabled. Everyone uses Bonjour, right?
     
  20. HerronScott

    HerronScott Well-Known Member

    7,506
    1,095
    Jan 1, 2002
    Staunton, VA
    The older method is TiVo Beacon. I know kmttg gives you an option to use that versus Bonjour but I'm not sure about pyTivo or Dan's pyTivo Desktop.

    pyTivo has this information on Beacon configuration.

    Configure pyTivo - pyTivo - Wiki

    I haven't had any issue with the original pyTivo on our WHS server (Windows Server 2003 so older OS) and our network so never had to mess with this.

    Scott
     

Share This Page

spam firewall

Advertisements