TiVo Streaming Plugin for Plex TiVoToGo.Bundle

Discussion in 'TiVo Roamio DVRs' started by ke3ju, Mar 6, 2018.

  1. windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL

    Advertisements

    No worries, glad it worked for ya!
     
  2. canbonbon

    canbonbon New Member

    21
    0
    Jun 10, 2009
    MA, USA
    Hello, I have TIVO Roamio OTA and I just installed this bundle on the latest PLEX server on Windows. Its a pretty powerful machine. However, I see buffering in most programs I tried to watch. Is there any setting that I could modify to fix that? I did not try the download option yet. I could do that if all else fails. Both TIVO and Plex server are connected via Ethernet to the same gigabit network (but TIVO only uses 100mbps ethernet). Let me know if you have any suggestions to improve that.

    Also, one more thing. Plex does not display any posters for the shows. It just shows the list. Anyway to enable the posters?
     
    Last edited: Jan 13, 2019
  3. windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL
    I don't do a lot of streaming via the app. I have kmttg running on my Linux server which auto-downloads content into my Plex folders and then I play those downloads.

    Are you talking about when browsing the contents of your TiVo through the Plex plug-in? If so, that's the way it currently is: just the list of shows. It's using the XML interface to pull the Now Playing list from the TiVo and just displaying it so there's no posters as part of that. It might be possible to parse the contents and do lookups, but that would really slow it down. Once the files are downloaded to your Plex server, Plex will properly match the metadata and show posters, episode info, etc.
     
  4. osu1991

    osu1991 Well-Known Member

    1,466
    486
    Mar 6, 2015
    Oklahoma
    Plex is removing plug in support, so eventually plug ins will go away.
     
  5. BrettStah

    BrettStah Well-Known Member

    33,693
    6,520
    Nov 12, 2000
    San Antonio
  6. windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL
    "Eventually" is pretty vague. The original announcement said "But don’t panic—while the Plugin Directory will soon be gone, you can still manually install plugins for the foreseeable future."

    edit: @BrettStah ninja'ed me to it. :)
     
    BrettStah likes this.
  7. osu1991

    osu1991 Well-Known Member

    1,466
    486
    Mar 6, 2015
    Oklahoma
    Take it however you want. Just passing it along for those that don’t visit Plex forums often. After the debacle of the Roku upgrade last month with that crappy new UI. Plugins were removed from the Roku interface and Elan has said they are gone and not coming back. Eventually or foreseeable future, in the end it is going away.
     
  8. Feb 7, 2019 #168 of 224
    mulder5000

    mulder5000 New Member

    6
    0
    Jan 17, 2009
    I have a new Bolt OTA and am trying to set up this plex plugin so I can stream my recordings to other TVs. My Plex server is on Windows 10. When I click on a show to stream, it just spins forever until I go back. I'm seeing the following in the logs.

    Code:
    2019-02-07 15:04:09,586 (44f8) :  INFO (logkit:16) - GET URL: http://192.168.1.142:80/download/Gordon%20Ramsay's%2024%20Hours%20to%20Hell%20%26%20Back.TiVo?Container=%2FNowPlaying&id=22
    2019-02-07 15:04:09,588 (44f8) :  DEBUG (logkit:13) - CMD: "C:\Users\xxxx\AppData\Local\Plex Media Server\Plug-ins\TiVoToGo.bundle\Contents\Resources\win\curl.exe" "http://192.168.1.142:80/download/Gordon%20Ramsay's%2024%20Hours%20to%20Hell%20%26%20Back.TiVo?Container=%2FNowPlaying&id=22" --digest -s -u tivo:xxxxxxxxxx -c "c:\users\xxxx\appdata\local\temp/cookies.txt"
    2019-02-07 15:04:09,598 (44f8) :  DEBUG (logkit:13) - PIPED to: "C:\Users\xxxx\AppData\Local\Plex Media Server\Plug-ins\TiVoToGo.bundle\Contents\Resources\win\tivodecode.exe" -m xxxxxxxxxx -
    2019-02-07 15:04:09,602 (44f8) :  INFO (logkit:16) - Starting decoder
    2019-02-07 15:04:11,292 (44f8) :  INFO (logkit:16) - Unexpected error: [Errno 10054] An existing connection was forcibly closed by the remote host
    2019-02-07 15:04:11,293 (44f8) :  INFO (logkit:16) - tivodecode/curl terminated
    If I run the CMD and PIPED lines together in the command prompt, I see a bunch of gibberish on the screen, which makes it seem like curl and tivodecode are working.

    Any ideas on how to solve the error: Unexpected error: [Errno 10054] An existing connection was forcibly closed by the remote host?
     
  9. Feb 7, 2019 #169 of 224
    windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL
    Not sure ... sounds like the connection is being closed by the TiVo for some reason. I've run into strange issues sometimes where the TiVo will just stop responding to the plug-in and a reboot (of the TiVo) usually fixes it. Have you tried that? Is this a wired or wireless network?
     
  10. Feb 7, 2019 #170 of 224
    mulder5000

    mulder5000 New Member

    6
    0
    Jan 17, 2009
    I just restarted both the TiVo and the PC running Plex. The log shows the same error. All devices are currently wired, although I plan on using the plugin on a couple wireless devices if I can get it working.
     
  11. Feb 7, 2019 #171 of 224
    windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL
    Maybe try using tivolibre instead of tivodecode?

    To be honest I don't use this plug-in a lot for streaming directly from the TiVo. That and I don't run Plex on Windows so these types of problems are hard for me to track down.
     
  12. Feb 7, 2019 #172 of 224
    mulder5000

    mulder5000 New Member

    6
    0
    Jan 17, 2009
    I selected the option for tivolibre and put in the full path to the 32-bit java exe. Same error.

    Thanks for the help. If I figure out anything while I'm playing around with it, I'll let you know.
     
  13. Feb 7, 2019 #173 of 224
    windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL
    Do regular downloads through the plug-in work? Is it just streaming that fails with the connection error?
     
  14. Feb 8, 2019 #174 of 224
    mulder5000

    mulder5000 New Member

    6
    0
    Jan 17, 2009
    I enabled the download option and set up a download folder. The download doesn't work, but I get a different error now.

    Code:
    2019-02-08 14:48:21,198 (2854) :  INFO (logkit:16) - URL: http://192.168.1.142:80/download/Gordon%20Ramsay's%2024%20Hours%20to%20Hell%20%26%20Back.TiVo?Container=%2FNowPlaying&id=22
    2019-02-08 14:48:21,198 (2854) :  INFO (logkit:16) - Title: Gordon Ramsay's 24 Hours to Hell & Back - Bayou on the Vine
    2019-02-08 14:48:21,200 (2854) :  INFO (logkit:16) - Search title  : Gordon Ramsay's 24 Hours to Hell & Back
    2019-02-08 14:48:21,200 (2854) :  INFO (logkit:16) - Search episode: Bayou on the Vine
    2019-02-08 14:48:21,200 (2854) :  INFO (logkit:16) - Executing episodeSearch
    2019-02-08 14:48:21,203 (2854) :  CRITICAL (core:574) - Exception (most recent call last):
      File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-cc260c476\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request
        result = f(**d)
      File "C:\Users\xxxx\AppData\Local\Plex Media Server\Plug-ins\TiVoToGo.bundle\Contents\Code\__init__.py", line 501, in downloadLocal
        remote = Remote(rpc_username, rpc_password)
      File "C:\Users\xxxx\AppData\Local\Plex Media Server\Plug-ins\TiVoToGo.bundle\Contents\Code\__init__.py", line 724, in __init__
        self.ssl_socket = ssl.wrap_socket(self.socket, certfile=certfile_path)
      File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\ssl.py", line 933, in wrap_socket
        ciphers=ciphers)
      File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\ssl.py", line 580, in __init__
        self.getpeername()
      File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\socket.py", line 228, in meth
        return getattr(self._sock,name)(*args)
    error: [Errno 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
     
  15. Feb 8, 2019 #175 of 224
    windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL
    That's a known issue on Windows. The RPC call to retrieve show information fails. Just clear out your TiVo Online username and password from the plug-in options and try again.
     
    mulder5000 likes this.
  16. Feb 8, 2019 #176 of 224
    mulder5000

    mulder5000 New Member

    6
    0
    Jan 17, 2009
    That did the trick for both downloading and streaming. Thanks so much for the help!
     
  17. Feb 8, 2019 #177 of 224
    windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL
    Great!

    I didn't think the RPC call was being used during streaming ... if I have a chance I'll look into that. Didn't think I was going to kill two birds with one stone there. :D

    edit: or maybe it was the switch to tivolibre
     
    Last edited: Feb 8, 2019
  18. Feb 8, 2019 #178 of 224
    mulder5000

    mulder5000 New Member

    6
    0
    Jan 17, 2009
    Just for fun, I put my username and password back in and tried the streaming again. It worked. Downloading didn't, as expected. I then tried removing the option for tivolibre and that worked too. I wonder if there was a setting such as video sharing or video downloads that took awhile to work its way to/through the TiVo.

    I'm only recording OTA channels on this box. Do you recommend using tivolibre or tivodecode?
     
  19. Feb 8, 2019 #179 of 224
    windracer

    windracer joined the 10k club

    12,325
    242
    Jan 3, 2003
    St. Pete, FL
    Strange.

    I personally use tivolibre as it seems to handle some transcoding jobs better than others. And if you want transport streams (.ts) you have to use it. But it's personal preference as to what works for you.
     
  20. Mar 7, 2019 #180 of 224
    jonw747

    jonw747 Active Member

    639
    32
    Aug 2, 2015
    I don't think Windows is happy with mixing forward slashes with back slashes.

    aka: "c:\users\xxxx\appdata\local\temp/cookies.txt"

    There's a few places in __init__.py, where a file with a / is appended to a path that uses \. It's pretty simple to kludge for windows users by changing / to \\ where you see + "/cookies.txt and + "/cdata.pem, something more OS aware should be done for the real code.

    Seemed like I had to shutdown Plex, and re-start it to convince it to re-process the plugin script.

    I've been having problems getting more than 1 downloaded file to showup in Plex. Not sure why, plus the episode naming is pretty bad. The tivo server connection option doesn't seem to be working for me, either, even with the change to cdata.pem - it's getting a connection error.
     

Share This Page

spam firewall

Advertisements