TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Underground Playground > Developers Corner
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 01-29-2013, 10:34 PM   #91
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 458
Vanclute, remove the # character from these three lines of code at the bottom of the code then try running:

Code:
httpd.socket.setsockopt(socket.SOL_TCP, socket.TCP_KEEPIDLE, 1)
httpd.socket.setsockopt(socket.SOL_TCP, socket.TCP_KEEPINTVL, 1)
httpd.socket.setsockopt(socket.SOL_TCP, socket.TCP_KEEPCNT, 5)
This code doesn't work on Windows but research shows it might work for mac and Linux.
Allanon is offline   Reply With Quote
Old 01-29-2013, 11:23 PM   #92
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 126
Uncommenting those lines and running the script, I get:

Code:
Traceback (most recent call last):
  File "/Users/user/Desktop/tivodecode_MacOSX_intel/Tivo Proxy Server 7.py", line 326, in <module>
    httpd.socket.setsockopt(socket.SOL_TCP, socket.TCP_KEEPIDLE, 1)
AttributeError: 'module' object has no attribute 'TCP_KEEPIDLE'
logout

[Process completed]
Next ideas?
vanclute is offline   Reply With Quote
Old 01-30-2013, 01:32 AM   #93
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 458
Vanclute, delete those three lines, I guess they only work in Linux. I've seen reports of that "Broken pipe" error being caused by a firewall. Try turning off your firewall and testing the program. I'm starting to run out of ideas so hopefully it's your firewall.
Allanon is offline   Reply With Quote
Old 01-30-2013, 11:07 AM   #94
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 126
sadly the firewall isn't running so... that's definitely not it.

Will delete those lines (though they were commented out previously weren't they?) and see what happens...

EDIT: No joy... broken pipe. Are there by chance any other Mac users who could take a stab at this so I can make sure it's not just me?
vanclute is offline   Reply With Quote
Old 01-30-2013, 02:17 PM   #95
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 458
Vanclute, try this version. In case tivodecode is taking it's time loading, I put a 5 second delay before sending any data to tivodecode. Also, maybe data is being transferred too fast so I reduced the number of bytes being read and written at one time.
Attached Files
File Type: zip Tivo Proxy Server.zip (2.5 KB, 8 views)
Allanon is offline   Reply With Quote
Old 01-31-2013, 02:11 AM   #96
wmcbrine
Free Bradley Manning
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,092
Quote:
Originally Posted by Allanon View Post
Vanclute, try this version. In case tivodecode is taking it's time loading, I put a 5 second delay before sending any data to tivodecode. Also, maybe data is being transferred too fast so I reduced the number of bytes being read and written at one time.
I haven't looked at this in enough detail to know what the problem is, but I can guarantee you're barking up the wrong tree with those changes.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 01-31-2013, 04:25 PM   #97
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 126
Alas wmcbrine appears to be correct, no change with the latest version.
vanclute is offline   Reply With Quote
Old 02-05-2013, 07:45 PM   #98
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 126
So are we at a dead on with this on Mac? I was so hopeful...
vanclute is offline   Reply With Quote
Old 02-05-2013, 10:28 PM   #99
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 458
Quote:
Originally Posted by vanclute View Post
So are we at a dead on with this on Mac? I was so hopeful...
I don't know how to correct your error. Someone with better knowledge of Python and Mac will need to help out.
Allanon is offline   Reply With Quote
Old 02-13-2013, 11:25 PM   #100
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 877
I finally figured out how to get VLC to read directly from the Proxy server...

simply add the rss url as podcast under the playlist options. I do have javascript that can lookup poster art for the TV shows and movies - but not being familiar with python, it would take me quite a bit of effort to integrate it.



But it was nice getting it to this point.
Attached Images
File Type: jpg tivopodcast.jpg (37.2 KB, 327 views)
__________________
TiVo S2 (Retired)
TiVo Series 3 (1 TB Upgrade)
TiVo HD
TiVo Premier (2 TB Upgrade)
iPad TiVo app
TiVo Stream
Personal Video Share powered by PyTiVo

Last edited by bradleys : 02-14-2013 at 12:09 AM.
bradleys is offline   Reply With Quote
Old 02-21-2013, 02:49 PM   #101
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 126
That's great... now if only the videos would play for me in the first place.
vanclute is offline   Reply With Quote
Old 02-21-2013, 06:04 PM   #102
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 877
I am anxiously waiting for VLC for windows 8 to use this on the Surface Pro tablet - that I am chomping at the bit to buy.

Sorry it doesn't work for you... It is still really unstable presented via the browser for me, but rock solid through VLC.
__________________
TiVo S2 (Retired)
TiVo Series 3 (1 TB Upgrade)
TiVo HD
TiVo Premier (2 TB Upgrade)
iPad TiVo app
TiVo Stream
Personal Video Share powered by PyTiVo
bradleys is offline   Reply With Quote
Old 02-28-2013, 02:36 PM   #103
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 458
Here is an update that fixes file transfers. The problem is detailed in this thread:

http://www.tivocommunity.com/tivo-vb...d.php?t=501420.

This version added a cookie with sid='ABC'.
Attached Files
File Type: zip Tivo Proxy Server.zip (2.4 KB, 11 views)
Allanon is offline   Reply With Quote
Old 02-28-2013, 07:53 PM   #104
mulscully
Registered User
 
Join Date: May 2003
Location: Malvern, Pa
Posts: 291
here is the error I am getting now... Any help would be appreciated.. I am running Windows 7 and am running the version of the proxy server listed in post #103 above

it does look like its starting to decode the video because the line right before the ---- it says

Decoding video

c:\Python27\tivodecode ( and I do have tivodecode in that directory, I copied the tivodecode dir from kmmttg into the Pyhton dir)


__________________
- 1 Tivo Premier "Elite" Stock.- monthly
- 2 Tivo HDs w/Motorola M Cable cards (Lifetime)
- 1 Verizon FIOS DVR

Last edited by mulscully : 02-28-2013 at 07:58 PM.
mulscully is offline   Reply With Quote
Old 03-01-2013, 12:23 AM   #105
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 458
Mulscully, I don't have Windows 7 or this problem so I was only able to look the error up on the internet and see how others fixed it. Some say just changing the directory to the path will solve the problem, so I added that code to this version. You might also try running as admin.
Attached Files
File Type: zip Tivo Proxy Server.zip (2.6 KB, 5 views)
Allanon is offline   Reply With Quote
Old 03-01-2013, 09:58 AM   #106
mulscully
Registered User
 
Join Date: May 2003
Location: Malvern, Pa
Posts: 291
Thanks, I will give this a try sometime tonight or tomorrow and post the result....
__________________
- 1 Tivo Premier "Elite" Stock.- monthly
- 2 Tivo HDs w/Motorola M Cable cards (Lifetime)
- 1 Verizon FIOS DVR
mulscully is offline   Reply With Quote
Old 03-03-2013, 07:21 PM   #107
mulscully
Registered User
 
Join Date: May 2003
Location: Malvern, Pa
Posts: 291
Nah... still getting the same error... Believe its a win 7 issue....
__________________
- 1 Tivo Premier "Elite" Stock.- monthly
- 2 Tivo HDs w/Motorola M Cable cards (Lifetime)
- 1 Verizon FIOS DVR
mulscully is offline   Reply With Quote
Old 03-10-2013, 09:09 PM   #108
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 126
I suspect you aren't really tracking the Mac issues since you aren't a Mac user, but I'm back to this error again. This is with the version you posted on 02.28.13:
Code:
/download/The%20Piano%20Guy.TiVo?Container=%2FNowPlaying&id=1339151

Video URL:  http://192.168.2.10:80/download/The%20Piano%20Guy.TiVo?Container=%2FNowPlaying&id=1339151

192.168.2.16 - - [10/Mar/2013 19:11:27] "GET /download/The%20Piano%20Guy.TiVo?Container=%2FNowPlaying&id=1339151 HTTP/1.1" 200 -

Decoding video

/Users/user/tivodecode

----------------------------------------
Exception happened during processing of request from ('192.168.2.16', 57057)
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 323, in finish_request
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 639, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 337, in handle
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 325, in handle_one_request
  File "/Users/user/Desktop/tivodecode/Tivo Proxy Server.py", line 231, in do_GET
    decode = subprocess.Popen(cmd,shell=False,bufsize=0,stdin=subprocess.PIPE,stdout=subprocess.PIPE)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1202, in _execute_child
OSError: [Errno 2] No such file or directory
----------------------------------------

vanclute is offline   Reply With Quote
Old 03-11-2013, 02:24 AM   #109
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 458
Vanclute, for some reason the last version didn't have the code that fixed your path problem. This version should work.
Attached Files
File Type: zip Tivo Proxy Server.zip (2.6 KB, 9 views)
Allanon is offline   Reply With Quote
Old 03-29-2013, 12:09 AM   #110
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 126
Unfortunately, no go here either.

Code:
Video URL:  http://192.168.2.10:80/download/The%20Piano%20Guy.TiVo?Container=%2FNowPlaying&id=1343114

192.168.2.16 - - [28/Mar/2013 22:15:58] "GET /download/The%20Piano%20Guy.TiVo?Container=%2FNowPlaying&id=1343114 HTTP/1.1" 200 -

Decoding video


/Users/user/Desktop/tivodecode/tivodecode

Encryption by QUALCOMM ;)

Disconnect
----------------------------------------
Exception happened during processing of request from ('192.168.2.16', 51043)
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 323, in finish_request
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 641, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 694, in finish
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 303, in flush
error: [Errno 32] Broken pipe
----------------------------------------

vanclute is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media
(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 10:38 AM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |