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

TiVo Streaming Plugin for Plex TiVoToGo.Bundle

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

  1. Mar 6, 2018 #1 of 129
    ke3ju

    ke3ju Ed Ludwig

    79
    14
    Jan 4, 2004
    Seminole, FL
    I have to say, once I bought my Roamio OTA and found out it did not support streaming in network, or out, I was very disappointed. Two months later, I found this.

    GitHub - sander1/TiVoToGo.bundle: TiVo To Go Plex Server Channel

    It works really well, and I can even stream outside my network on the Interwebz.

    Apparently, this has been around for a while, but was broken, and some cat took the code, figured what was wrong, and fixed it.

    Just thought I'd share here, because this really completes the system for me. Nothing left on the checklist. (Well, not really true, but this was really big)

    Cheers everyone!!! Enjoy!!!
     
  2. Mar 7, 2018 #2 of 129
    Scooter Scott

    Scooter Scott Member

    93
    10
    Jun 1, 2015
    I'm going to try this tonight :)
     
  3. Mar 7, 2018 #3 of 129
    jim8650

    jim8650 New Member

    22
    1
    Jun 16, 2016
    Pittsburgh
    could you please report back with your experience?...and maybe step by step instructions?...I briefly looked at the instructions on the link and am kinda lost :(...will take another shot at it tonight or tomorrow when I get time, as I would very much like to have the ability to do this on my iPad
     
  4. Mar 7, 2018 #4 of 129
    reneg

    reneg Active Member

    937
    107
    Jun 19, 2002
    I didn't spend a lot of time on it, but I tried this plugin last night, and while it did list the shows on my Tivo (which if I recall correctly is an improvement over the previous version), it would not play any of the videos for me. I got an endless spinning circle. I suspect that this plugin might only support PS streams from the Tivo, and not TS streams. The streams from the Tivo I tested only supports TS streams. I may try to play with this again when I have more time.

    Install is simple. Copy the bundle directory to your Plex plugin folder and make sure the directory name ends in .bundle and then once the plugin is visible in Plex, click the settings icon to configure the MAK, Tivo IP address, etc.., then launch.
     
  5. Mar 7, 2018 #5 of 129
    jim8650

    jim8650 New Member

    22
    1
    Jun 16, 2016
    Pittsburgh
    thanks...I may invest the time as well then
     
  6. Mar 7, 2018 #6 of 129
    ke3ju

    ke3ju Ed Ludwig

    79
    14
    Jan 4, 2004
    Seminole, FL
    What's the difference between PS Stream and TS?

    Sent from my SM-G900V using Tapatalk
     
  7. Mar 7, 2018 #7 of 129
    reneg

    reneg Active Member

    937
    107
    Jun 19, 2002
    Just a guess on my part. From this plugins perspective, it uses tivodecode which works for PS streams and if I recall, has trouble with TS streams.
     
  8. Mar 7, 2018 #8 of 129
    windracer

    windracer joined the 10k club

    12,033
    141
    Jan 3, 2003
    St. Pete, FL
    Interesting ... I'll give this a try.
     
  9. Mar 7, 2018 #9 of 129
    reneg

    reneg Active Member

    937
    107
    Jun 19, 2002
    I confirmed on a Roamio OTA that I could play back PS recorded streams with this plugin. I cannot play back TS recorded streams from my cable provider, Comcast. Expect mixed results from this plugin.
     
  10. Mar 8, 2018 #10 of 129
    slowbiscuit

    slowbiscuit FUBAR

    4,094
    273
    Sep 19, 2006
    In the ATL
    That's the reason why I had to abandon it - it used tivodecode which fails with Comcast mpeg4 channels. Which is almost all of them on Comcast now.
     
  11. Mar 8, 2018 #11 of 129
    windracer

    windracer joined the 10k club

    12,033
    141
    Jan 3, 2003
    St. Pete, FL
    It kinda worked for me ... I can start a stream, but as soon as I try to trickplay, it just locks up and won't play anymore. I'd like to see updated graphics as well.

    Might have to fork and poke around. ;)
     
  12. Mar 10, 2018 #12 of 129
    ke3ju

    ke3ju Ed Ludwig

    79
    14
    Jan 4, 2004
    Seminole, FL
    Mine works fine, but the PC that's is doing the transcoding is an i7 with 20 gigs of RAM.

    Sent from my SM-G900V using Tapatalk
     
  13. Apr 9, 2018 #13 of 129
    windracer

    windracer joined the 10k club

    12,033
    141
    Jan 3, 2003
    St. Pete, FL
    I think I'm going to start using this instead of the TiVo iOS app to download/playback recordings on my phone. It's very helpful since the downloads happen on the PMS server so I don't need to keep an app open on my phone like you do when downloading through the TiVo app.

    I made a few changes in my fork, specifically the ability to name the downloaded file with the proper sXXeYY format for TV shows, and the option to specify multiple Plex libraries to refresh. This way I can add my TiVo downloads folder to both my "TV Shows" and "Movies" Plex libraries (which use different metadata agents) and for the most part the metadata lookup will work and show them under the proper library. It's not perfect, but it works most of the time.

    jradwan/TiVoToGo.bundle
     
    BrettStah and krkaufman like this.
  14. Apr 10, 2018 #14 of 129
    slowbiscuit

    slowbiscuit FUBAR

    4,094
    273
    Sep 19, 2006
    In the ATL
    Please also consider switching to tivolibre to do the decrypt instead of tivodecode so the plugin can be used on Comcast (TS for mpeg4). kmttg does that today.
     
    mattack and Mikeguy like this.
  15. Apr 11, 2018 #15 of 129
    windracer

    windracer joined the 10k club

    12,033
    141
    Jan 3, 2003
    St. Pete, FL
    I agree that'd be cool, but tivolibre is written in Java, so it was probably relatively easy to incorporate it into kmttg. The Plex plugin is written in Python. I'm not a master of either Python or Java so using a Java class in a Python program is a bit beyond me.

    That being said, it looks like @Dan203 uses it in his pyTivo Desktop so maybe I'll take a look and see if I can figure it out. I might not be a master coder, but I'm good at poking around. :)

    edit: oh, he made compiled executable versions to run on Windows and OSX so that doesn't help.
     
    krkaufman likes this.
  16. Apr 30, 2018 #16 of 129
    windracer

    windracer joined the 10k club

    12,033
    141
    Jan 3, 2003
    St. Pete, FL
    Ok, I've added tivolibre support. I've only tested on Linux but as long as you've got Java installed and put the path to your runtime in the plugin settings, it should work. Let me know how it works for you.

    jradwan/TiVoToGo.bundle

    I ran into a problem with this week's episode of Brooklyn Nine-Nine which is named "Bachelor/ette Party" and the forward slash in there causes a problem with the download thinking there's a missing subdirectory, so I'll try and clean that up.

    I've also noticed the Suggestions folder doesn't work in the plugin. I suspect this is because it's using the old query (https://{TiVo IP}/nowplaying/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying%2F0) which doesn't work anymore. I'm not sure how to approach that one ...
     
    slowbiscuit likes this.
  17. May 1, 2018 #17 of 129
    slowbiscuit

    slowbiscuit FUBAR

    4,094
    273
    Sep 19, 2006
    In the ATL
    Hmm, thanks for the tivolibre update but doesn't seem to be working on Win10. I set the java path to C:/ProgramData/Oracle/Java/javapath/java.exe (this is what's in the Windows environment vars for java) and checked the tivolibre box, can see all my Tivo shows but none of them playback, they all error out on play. Tried both mpeg2 and mpeg4 files, think it might be a tivolibre-related error.

    Is it doing TS transfers and is there a log to see what's going on?
     
  18. May 1, 2018 #18 of 129
    windracer

    windracer joined the 10k club

    12,033
    141
    Jan 3, 2003
    St. Pete, FL
    Yeah, check the plug-in log (com.plexapp.plugins.tivotogo.log under Plex Media Server/Logs/PMS Plugin Logs). Look for the "CMD" and "PIPED" debug log entries. The CMD shows the curl command (which is pulling the video from your TiVo) and the PIPED line shows the command-line for tivolibre (or tivodecode) that the output of curl is being piped through. I've probably got a bug in the command-line generation for Windows.

    Code:
    DEBUG (__init__:332) - CMD: /usr/bin/curl http://192.168.1.73:80/download/Brooklyn%20Nine-Nine.TiVo?Container=%2FNowPlaying&id=44354 --digest -s -u tivo:xxxxxxxxxx -c /tmp/cookies.txt
    DEBUG (__init__:337) - PIPED to: /usr/bin/java -jar "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/TiVoToGo.bundle/Contents/Resources/TivoDecoder.jar" -m xxxxxxxxxx -
    
    In your case, the PIPED line should contain something like:

    Code:
    C:/ProgramData/Oracle/Java/javapath/java.exe -jar "{path to your Plex install}/Plex Media Server/Plug-ins/TiVoToGo.bundle/Contents/Resources/TivoDecoder.jar" -m xxxxxxxxxx -
    edit: I checked my Java install on my Windows 10 PC (I don't run Plex on it through) and the path to java.exe was actually C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe (which actually points to C:\Program Files (x86)\Java\jre1.8.0_171\bin\java.exe). So make sure you confirm that what you put into the java path preference in the channel is valid. You could also try putting double-quotes around the string since it contains spaces. I could make a code change so the quotes get added automatically, just in case.
     
    Last edited: May 1, 2018
  19. May 3, 2018 #19 of 129
    slowbiscuit

    slowbiscuit FUBAR

    4,094
    273
    Sep 19, 2006
    In the ATL
    OK, here's the log entries when it fails trying to stream to Plex. Is it possible that curl is bombing because /tmp/cookies.txt is not a valid path? Everything else looks correct to me (the java path on my PC is good, path to curl is good). MAK was replaced by 'xx's below.

    Code:
    2018-05-01 09:03:33,691 (1210) :  INFO (logkit:16) - GET URL: http://192.168.1.178:80/download/The%20Crossing.TiVo?Container=%2FNowPlaying&id=23212
    2018-05-01 09:03:33,693 (1210) :  DEBUG (logkit:13) - CMD: C:\Users\D***\AppData\Local\Plex Media Server\Plug-ins\TiVoToGo.bundle\Contents\Resources\win\curl.exe http://192.168.1.178:80/download/The%20Crossing.TiVo?Container=%2FNowPlaying&id=23212 --digest -s -u tivo:xxxxxxxxxx -c /tmp/cookies.txt
    2018-05-01 09:03:33,700 (1210) :  DEBUG (logkit:13) - PIPED to: C:\ProgramData\Oracle\Java\javapath\java.exe -jar "C:\Users\D***\AppData\Local\Plex Media Server\Plug-ins\TiVoToGo.bundle\Contents\Resources\TivoDecoder.jar" -m xxxxxxxx -
    2018-05-01 09:03:33,707 (1210) :  INFO (logkit:16) - Starting decoder
    2018-05-01 09:03:33,934 (1210) :  INFO (logkit:16) - tivodecode/curl terminated
    
     
  20. May 3, 2018 #20 of 129
    windracer

    windracer joined the 10k club

    12,033
    141
    Jan 3, 2003
    St. Pete, FL
    Yup, that's probably it. I think that's like that in the original channel code, but it's possible I missed it. For now, you can edit the __init__.py code in the channel's directory, look for "/tmp/cookies.txt" and replace it with "C:\temp\cookies/txt" (or some other place you know exists) and see if that works. I'll look into fixing that for the Windows platform.
     
    krkaufman likes this.

Share This Page