TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Underground Playground > Developers Corner
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 01-13-2013, 02:41 PM   #31
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 137
Quote:
Originally Posted by Allanon View Post
To get the XML file just enter the following in to your internet browser. I used the Tivo URL from your error message but if that is not correct then change the URL to what it should be:
Code:
https://192.168.2.16/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=0
Then it should ask for a username and password, use the word tivo as the username and your Tivo MAK number as the password. Your browser should then display the Tivo XML file. Just save it to a file and post it here or send it as a private message.
wow... my server REALLY did not like that. I added the port number to the URL and then got this:

Code:
192.168.2.16 - - [13/Jan/2013 12:42:33] code 400, message Bad request syntax ('\x16\x03\x01\x00\x8f\x01\x00\x00\x8b\x03\x01P\xf3\x1c9)\xa9\x84&\x86\x86\xd3\xb5\xd3\x13fn9s\xbcR\xbc\x05\xb3|\x12\x17\xd8\xdd\xbc\xaf\xe6\x02\x00\x00H\x00\xff\xc0')
192.168.2.16 - - [13/Jan/2013 12:42:33] "??P?9)??&??ӵ?fn9s?R??|?ݼ??H??" 400 -
192.168.2.16 - - [13/Jan/2013 12:42:33] code 400, message Bad request syntax ('\x16\x03\x01\x00\x8f\x01\x00\x00\x8b\x03\x01P\xf3\x1c9\xe5\x83t-\x7f\x1e"\xe9\x9dI\xf9;\xb2)\x8cwts(\x13#\xf0P\xb7\x83"6Y\x00\x00H\x00\xff\xc0')
192.168.2.16 - - [13/Jan/2013 12:42:33] "??P?9?t-"?I?;?)?wts(#?P??"6YH??" 400 -
The exact URL I used was:

Code:
https://192.168.2.16:10001/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&AnchorOffset=0
suggestions?
vanclute is offline   Reply With Quote
Old 01-13-2013, 04:37 PM   #32
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Quote:
Originally Posted by vanclute View Post
wow... my server REALLY did not like that.
That URL has nothing to do with my program. It just retrieves the XML Now Playing List from your Tivo. Don't add a port number and use your Tivo URL not your computer's URL.
Allanon is offline   Reply With Quote
Old 01-13-2013, 04:48 PM   #33
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Quote:
Originally Posted by bradleys View Post
I have a Premier, an HD and an S3, I am testing against the Premier. Let me give it a try against the HD. I am in Dallas.

The new file does not work against any of my TiVo's. Attached is the XML from my Premier box
Thanks for the file, it looks almost identical to the Tivo HD XML. Not sure why it's not working. I'm going to try the code on Linux to see if I get different results. Will report back later tonight.

BTW, what OS are you running?
Allanon is offline   Reply With Quote
Old 01-13-2013, 06:16 PM   #34
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 1,461
Quote:
Originally Posted by Allanon View Post
Thanks for the file, it looks almost identical to the Tivo HD XML. Not sure why it's not working. I'm going to try the code on Linux to see if I get different results. Will report back later tonight.

BTW, what OS are you running?
Windows 7. As I said, the ealier file you created generates a readable RSS feed, but fails on the transcode. The last file you created fails on the RSS feed for me.

I have both TiVo decode and your file extracted to the same directory. I have Python 2.7.3 installed.
__________________
TiVo S2 (Retired)
TiVo Series 3 (for sale)
TiVo HD (for sale)
TiVo Premier (2 TB Upgrade)
TiVo Roamio Plus
TiVo Mini
iPad TiVo app
TiVo Stream (Sold)
Personal Video Share powered by PyTiVo
bradleys is offline   Reply With Quote
Old 01-13-2013, 11:03 PM   #35
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Here is an updated version that should fix the RSS Feed. There was an & in the episode title and apparently browsers don't like the & character so it has to be replaced with &. I was doing that for the URL but not for any of the other data so an error was produced. This is now fixed.

I also noticed that the program wasn't putting the port number in the Video URL so I placed port 80 in the URL. Maybe Windows 7 needs the port number.
Attached Files
File Type: zip Tivo Proxy Server.zip (2.0 KB, 14 views)
Allanon is offline   Reply With Quote
Old 01-14-2013, 08:53 AM   #36
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 1,461
Quote:
Originally Posted by Allanon View Post
Here is an updated version that should fix the RSS Feed. There was an & in the episode title and apparently browsers don't like the & character so it has to be replaced with &. I was doing that for the URL but not for any of the other data so an error was produced. This is now fixed.

I also noticed that the program wasn't putting the port number in the Video URL so I placed port 80 in the URL. Maybe Windows 7 needs the port number.

Yes, those special characters! - I struggled with those when I developed my poster art lookup logic. The RSS is working but still failing with the '&' in Angels & Demons. If I delete that movie, it works fine.


Unfortunately, it is still not working. I am sure you are getting a little tired of trouble shooting this. If you are still interested, I am attaching my code - this is the same output if I run it via firefox or input the url into VLN.

Code:
Video URL:  http://192.168.1.7:80/download/MuscleCar.TiVo?Container=%2FNowPlaying&id=4404019200&Format=video/x-tivo-mpeg

HOME_OFFICE.home - - [14/Jan/2013 17:36:07] "GET /download/MuscleCar.TiVo?Container=%2FNowPlaying&id=4404019200&Format=video/x-tivo-mpeg HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.6', 58127)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 638, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\Program Files (x86)\TivoProxy\Tivo Proxy Server.py", line 154, in do_GET
    videoFile =  openUrl(link, 'tivo', Tivo_MAK)
  File "C:\Program Files (x86)\TivoProxy\Tivo Proxy Server.py", line 25, in openUrl
    return urllib2.urlopen(url)
  File "C:\Python27\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 406, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
----------------------------------------

If I get this working the next step is to try to feed this to my Plex Media Server using the feed me plugin. With that you can stream to Roku boxes, xbox... Heck, any number of devices.
__________________
TiVo S2 (Retired)
TiVo Series 3 (for sale)
TiVo HD (for sale)
TiVo Premier (2 TB Upgrade)
TiVo Roamio Plus
TiVo Mini
iPad TiVo app
TiVo Stream (Sold)
Personal Video Share powered by PyTiVo

Last edited by bradleys : 01-14-2013 at 08:09 PM.
bradleys is offline   Reply With Quote
Old 01-15-2013, 12:33 AM   #37
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 137
Quote:
Originally Posted by Allanon View Post
That URL has nothing to do with my program. It just retrieves the XML Now Playing List from your Tivo. Don't add a port number and use your Tivo URL not your computer's URL.
Ahh I see, my mistake. Here is the output:

Code:
<TiVoContainer><Details><ContentType>x-tivo-container/tivo-videos</ContentType><SourceFormat>x-tivo-container/tivo-dvr</SourceFormat><Title>Now Playing</Title><LastChangeDate>0x50F4F768</LastChangeDate><TotalItems>430</TotalItems><UniqueId>/NowPlaying</UniqueId></Details><SortOrder>Type,CaptureDate</SortOrder><GlobalSort>Yes</GlobalSort><ItemStart>0</ItemStart><ItemCount>16</ItemCount><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>The Owl and the Pussycat</Title><SourceSize>4404019200</SourceSize><Duration>7198000</Duration><CaptureDate>0x50F1C0BE</CaptureDate><ShowingDuration>7200000</ShowingDuration><ShowingStartTime>0x50F1C0C0</ShowingStartTime><Description>An uptight would-be writer shares a New York apartment with a part-time prostitute. Copyright Tribune Media Services, Inc.</Description><SourceChannel>186</SourceChannel><SourceStation>KNTVDT2</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV000077810000</ProgramId><SeriesId>MV007781</SeriesId><StreamingPermission>Yes</StreamingPermission><TvRating>3</TvRating><MpaaRating>2</MpaaRating><ShowingBits>1</ShowingBits><SourceType>2</SourceType><IdGuideSource>36151</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/The%20Owl%20and%20the%20Pussycat.TiVo?Container=%2FNowPlaying&id=1337050</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1337050</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Pop Up Video</Title><SourceSize>2202009600</SourceSize><Duration>1799000</Duration><CaptureDate>0x50F14936</CaptureDate><ShowingDuration>1800000</ShowingDuration><ShowingStartTime>0x50F14938</ShowingStartTime><EpisodeTitle>Celeb Cameos</EpisodeTitle><SourceChannel>44</SourceChannel><SourceStation>VH1P</SourceStation><HighDefinition>No</HighDefinition><ProgramId>EP014764110078</ProgramId><SeriesId>SH01476411</SeriesId><EpisodeNumber>206</EpisodeNumber><StreamingPermission>Yes</StreamingPermission><TvRating>4</TvRating><ShowingBits>786946</ShowingBits><SourceType>2</SourceType><IdGuideSource>16376</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/Pop%20Up%20Video.TiVo?Container=%2FNowPlaying&id=1337184</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:save-until-i-delete-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1337184</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Little Miss Marker</Title><SourceSize>2202009600</SourceSize><Duration>5400000</Duration><CaptureDate>0x50F0996E</CaptureDate><ShowingDuration>5400000</ShowingDuration><ShowingStartTime>0x50F09970</ShowingStartTime><Description>Bookie Sorrowful Jones receives a little girl as an IOU in the Damon Runyon tale. Copyright Tribune Media Services, Inc.</Description><SourceChannel>186</SourceChannel><SourceStation>KNTVDT2</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV000031060000</ProgramId><SeriesId>MV003106</SeriesId><StreamingPermission>Yes</StreamingPermission><TvRating>4</TvRating><MpaaRating>8</MpaaRating><ShowingBits>0</ShowingBits><SourceType>2</SourceType><IdGuideSource>36151</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/Little%20Miss%20Marker.TiVo?Container=%2FNowPlaying&id=1337049</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1337049</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>The Millionaire Matchmaker</Title><SourceSize>2202009600</SourceSize><Duration>3599000</Duration><CaptureDate>0x50EF9C4E</CaptureDate><ShowingDuration>3600000</ShowingDuration><ShowingStartTime>0x50EF9C50</ShowingStartTime><EpisodeTitle>Wounded Wally and the Mama's Boy</EpisodeTitle><Description>Daniel Negreanu is a 37-year-old professional poker player; Brian Holloway II is a divorced heir to his family's fortune. Copyright Tribune Media Services, Inc.</Description><SourceChannel>48</SourceChannel><SourceStation>BRAVOP</SourceStation><HighDefinition>No</HighDefinition><ProgramId>EP010175710066</ProgramId><SeriesId>SH01017571</SeriesId><EpisodeNumber>601</EpisodeNumber><StreamingPermission>Yes</StreamingPermission><TvRating>5</TvRating><ShowingBits>2</ShowingBits><SourceType>2</SourceType><IdGuideSource>31555</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/The%20Millionaire%20Matchmaker.TiVo?Container=%2FNowPlaying&id=1336029</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1336029</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Highway to Heaven</Title><SourceSize>2202009600</SourceSize><Duration>3599000</Duration><CaptureDate>0x50EE128E</CaptureDate><ShowingDuration>3600000</ShowingDuration><ShowingStartTime>0x50EE1290</ShowingStartTime><EpisodeTitle>Popcorn, Peanuts and Cracker Jacks</EpisodeTitle><Description>When Jonathan is called away, Mark visits his former partner and uncovers a family secret; guest Shannen Doherty. Copyright Tribune Media Services, Inc.</Description><SourceChannel>186</SourceChannel><SourceStation>KNTVDT2</SourceStation><HighDefinition>No</HighDefinition><ProgramId>EP000020920031</ProgramId><SeriesId>SH002092</SeriesId><EpisodeNumber>7856</EpisodeNumber><StreamingPermission>Yes</StreamingPermission><TvRating>4</TvRating><ShowingBits>513</ShowingBits><SourceType>2</SourceType><IdGuideSource>36151</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/Highway%20to%20Heaven.TiVo?Container=%2FNowPlaying&id=1337048</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1337048</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>The Brass Bottle</Title><SourceSize>4404019200</SourceSize><Duration>7198000</Duration><CaptureDate>0x50EDF66E</CaptureDate><ShowingDuration>7200000</ShowingDuration><ShowingStartTime>0x50EDF670</ShowingStartTime><Description>An architect finds an old bottle, out of which comes a genie eager to do his bidding. Copyright Tribune Media Services, Inc.</Description><SourceChannel>186</SourceChannel><SourceStation>KNTVDT2</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV000051870000</ProgramId><SeriesId>MV005187</SeriesId><StreamingPermission>Yes</StreamingPermission><TvRating>4</TvRating><MpaaRating>8</MpaaRating><ShowingBits>0</ShowingBits><SourceType>2</SourceType><IdGuideSource>36151</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/The%20Brass%20Bottle.TiVo?Container=%2FNowPlaying&id=1337047</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1337047</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Madame X</Title><SourceSize>4404019200</SourceSize><Duration>7198000</Duration><CaptureDate>0x50EDDA4E</CaptureDate><ShowingDuration>7200000</ShowingDuration><ShowingStartTime>0x50EDDA50</ShowingStartTime><Description>A young lawyer defends an alcoholic woman accused of murder, unaware that she is his mother. Copyright Tribune Media Services, Inc.</Description><SourceChannel>186</SourceChannel><SourceStation>KNTVDT2</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV000025610000</ProgramId><SeriesId>MV002561</SeriesId><StreamingPermission>Yes</StreamingPermission><TvRating>4</TvRating><MpaaRating>8</MpaaRating><ShowingBits>0</ShowingBits><SourceType>2</SourceType><IdGuideSource>36151</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/Madame%20X.TiVo?Container=%2FNowPlaying&id=1337046</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1337046</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>The Millionaire Matchmaker</Title><SourceSize>2202009600</SourceSize><Duration>3598000</Duration><CaptureDate>0x50EDA20E</CaptureDate><ShowingDuration>3600000</ShowingDuration><ShowingStartTime>0x50EDA210</ShowingStartTime><EpisodeTitle>Dateapause</EpisodeTitle><Description>A globetrotting DJ and a mother of four search for matches. Copyright Tribune Media Services, Inc.</Description><SourceChannel>48</SourceChannel><SourceStation>BRAVOP</SourceStation><HighDefinition>No</HighDefinition><ProgramId>EP010175710037</ProgramId><SeriesId>SH01017571</SeriesId><EpisodeNumber>405</EpisodeNumber><StreamingPermission>Yes</StreamingPermission><TvRating>5</TvRating><ShowingBits>514</ShowingBits><SourceType>2</SourceType><IdGuideSource>31555</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/The%20Millionaire%20Matchmaker.TiVo?Container=%2FNowPlaying&id=1335933</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1335933</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Adventure in Baltimore</Title><SourceSize>3953131520</SourceSize><Duration>6300000</Duration><CaptureDate>0x50E69D92</CaptureDate><ShowingDuration>6300000</ShowingDuration><ShowingStartTime>0x50E69D94</ShowingStartTime><Description>A minister's teenage daughter grows up, gains a suitor and speaks out for women's rights. Copyright Tribune Media Services, Inc.</Description><SourceChannel>501</SourceChannel><SourceStation>TCM</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV000087180000</ProgramId><SeriesId>MV008718</SeriesId><StreamingPermission>Yes</StreamingPermission><MpaaRating>8</MpaaRating><ShowingBits>0</ShowingBits><SourceType>2</SourceType><IdGuideSource>12852</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/Adventure%20in%20Baltimore.TiVo?Container=%2FNowPlaying&id=1336373</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1336373</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Upside.Down.2012.BRRIP.XVID-AC3-PULSAR</Title><CopyProtected>Yes</CopyProtected><SourceSize>4278190080</SourceSize><Duration>6466000</Duration><CaptureDate>0x50E68505</CaptureDate><ShowingDuration>6420000</ShowingDuration><ShowingStartTime>0x50E68504</ShowingStartTime><EpisodeTitle>Upside.Down.2012.BRRIP.XVID-AC3-PULSAR</EpisodeTitle><Description>Upside.Down.2012.BRRIP.XVID-AC3-PULSAR Copyright Tribune Media Services, Inc.</Description><HighDefinition>No</HighDefinition><ProgramId>BS15000171</ProgramId><SeriesId>BS1430576535</SeriesId><StreamingPermission>Yes</StreamingPermission><ShowingBits>0</ShowingBits></Details><Links><Content><Url>http://192.168.2.10:80/download/Upside.Down.2012.BRRIP.XVID-AC3-PULSAR.TiVo?Container=%2FNowPlaying&id=1336589</Url><ContentType>video/x-tivo-raw-tts</ContentType><Available>No</Available></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1336589</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Step.Brothers[2008][Unrated.Edition]DvDrip-ColinWithaT</Title><CopyProtected>Yes</CopyProtected><SourceSize>1929379840</SourceSize><Duration>6335000</Duration><CaptureDate>0x50E682F1</CaptureDate><ShowingDuration>6300000</ShowingDuration><ShowingStartTime>0x50E682EF</ShowingStartTime><EpisodeTitle>Step.Brothers[2008][Unrated.Edition]DvDrip-ColinWithaT</EpisodeTitle><Description>Step.Brothers[2008][Unrated.Edition]DvDrip-ColinWithaT Copyright Tribune Media Services, Inc.</Description><HighDefinition>No</HighDefinition><ProgramId>BS15000161</ProgramId><SeriesId>BS988614116</SeriesId><StreamingPermission>Yes</StreamingPermission><ShowingBits>0</ShowingBits></Details><Links><Content><Url>http://192.168.2.10:80/download/Step.Brothers%5B2008%5D%5BUnrated.Edition%5DDvDrip-ColinWithaT.TiVo?Container=%2FNowPlaying&id=1336588</Url><ContentType>video/x-tivo-raw-tts</ContentType><Available>No</Available></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1336588</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Little Girl Lost: The Delimar Vera Story</Title><SourceSize>2202009600</SourceSize><Duration>7199000</Duration><CaptureDate>0x50E67DEE</CaptureDate><ShowingDuration>7200000</ShowingDuration><ShowingStartTime>0x50E67DF0</ShowingStartTime><Description>A woman who lost her daughter in a fire tries to prove that a young girl is the same child. Copyright Tribune Media Services, Inc.</Description><SourceChannel>504</SourceChannel><SourceStation>LMN</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV002286640000</ProgramId><SeriesId>MV228664</SeriesId><StreamingPermission>Yes</StreamingPermission><TvRating>4</TvRating><MpaaRating>8</MpaaRating><ShowingBits>1</ShowingBits><SourceType>2</SourceType><IdGuideSource>18480</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/Little%20Girl%20Lost%20The%20Delimar%20Vera%20Story.TiVo?Container=%2FNowPlaying&id=1336585</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1336585</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>I'll Be Seeing You</Title><SourceSize>3282042880</SourceSize><Duration>5397000</Duration><CaptureDate>0x50E668DB</CaptureDate><ShowingDuration>5400000</ShowingDuration><ShowingStartTime>0x50E668D8</ShowingStartTime><Description>A woman on leave from prison meets a shellshocked veteran on furlough, and they fall in love at Christmas. Copyright Tribune Media Services, Inc.</Description><SourceChannel>501</SourceChannel><SourceStation>TCM</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV000009860000</ProgramId><SeriesId>MV000986</SeriesId><StreamingPermission>Yes</StreamingPermission><MpaaRating>8</MpaaRating><ShowingBits>0</ShowingBits><SourceType>2</SourceType><IdGuideSource>12852</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/I'll%20Be%20Seeing%20You.TiVo?Container=%2FNowPlaying&id=1334494</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1334494</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Weekend for Three</Title><SourceSize>2202009600</SourceSize><Duration>4500000</Duration><CaptureDate>0x50E617FA</CaptureDate><ShowingDuration>4500000</ShowingDuration><ShowingStartTime>0x50E617FC</ShowingStartTime><Description>A loud friend gets too friendly and wears out his welcome in a couple's home. Copyright Tribune Media Services, Inc.</Description><SourceChannel>501</SourceChannel><SourceStation>TCM</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV000166700000</ProgramId><SeriesId>MV016670</SeriesId><StreamingPermission>Yes</StreamingPermission><MpaaRating>8</MpaaRating><ShowingBits>0</ShowingBits><SourceType>2</SourceType><IdGuideSource>12852</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/Weekend%20for%20Three.TiVo?Container=%2FNowPlaying&id=1336372</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1336372</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>Chelsea Lately</Title><SourceSize>2202009600</SourceSize><Duration>1796000</Duration><CaptureDate>0x50E54186</CaptureDate><ShowingDuration>1800000</ShowingDuration><ShowingStartTime>0x50E54188</ShowingStartTime><Description>Christina Aguilera; Blake Shelton; Adam Levine. Copyright Tribune Media Services, Inc.</Description><SourceChannel>64</SourceChannel><SourceStation>EP</SourceStation><HighDefinition>No</HighDefinition><ProgramId>EP009387531133</ProgramId><SeriesId>SH938753</SeriesId><StreamingPermission>Yes</StreamingPermission><TvRating>5</TvRating><ShowingBits>852480</ShowingBits><SourceType>2</SourceType><IdGuideSource>17561</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/Chelsea%20Lately.TiVo?Container=%2FNowPlaying&id=1335625</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1335625</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item><Item><Details><ContentType>video/x-tivo-raw-tts</ContentType><SourceFormat>video/x-tivo-raw-tts</SourceFormat><Title>The Squall</Title><SourceSize>2202009600</SourceSize><Duration>7200000</Duration><CaptureDate>0x50E528EA</CaptureDate><ShowingDuration>7200000</ShowingDuration><ShowingStartTime>0x50E528EC</ShowingStartTime><Description>A gypsy woman applies her feminine charms to the male members of a farmhouse where she takes refuge during a storm. Copyright Tribune Media Services, Inc.</Description><SourceChannel>501</SourceChannel><SourceStation>TCM</SourceStation><HighDefinition>No</HighDefinition><ProgramId>MV000419870000</ProgramId><SeriesId>MV041987</SeriesId><StreamingPermission>Yes</StreamingPermission><MpaaRating>8</MpaaRating><ShowingBits>0</ShowingBits><SourceType>2</SourceType><IdGuideSource>12852</IdGuideSource></Details><Links><Content><Url>http://192.168.2.10:80/download/The%20Squall.TiVo?Container=%2FNowPlaying&id=1336371</Url><ContentType>video/x-tivo-raw-tts</ContentType></Content><CustomIcon><Url>urn:tivo:image:expired-recording</Url><ContentType>image/*</ContentType><AcceptsParams>No</AcceptsParams></CustomIcon><TiVoVideoDetails><Url>https://192.168.2.10:443/TiVoVideoDetails?id=1336371</Url><ContentType>text/xml</ContentType><AcceptsParams>No</AcceptsParams></TiVoVideoDetails></Links></Item></TiVoContainer>
Hope it's helpful!
vanclute is offline   Reply With Quote
Old 01-15-2013, 01:54 AM   #38
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Vanclute, thanks for the data, it's always good to get more data to test. Did you try the latest version of the program? Are you still having problems?


Bradleys, I have no idea why the "&Format=video/x-tivo-mpeg" is being added to the end of your URL. I tested the XML File you gave me and it doesn't append that to the end. That XML file doesn't even have "&Format=" located in it. Today I will have access to a Windows 7 computer and I will test to see if I can reproduce the error. You might try removing the "&Format" part of the URL and see if that works. If it does then I can just remove it before opening the URL.
Allanon is offline   Reply With Quote
Old 01-15-2013, 09:19 AM   #39
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 1,461
Quote:
Originally Posted by Allanon View Post
Vanclute, thanks for the data, it's always good to get more data to test. Did you try the latest version of the program? Are you still having problems?


Bradleys, I have no idea why the "&Format=video/x-tivo-mpeg" is being added to the end of your URL. I tested the XML File you gave me and it doesn't append that to the end. That XML file doesn't even have "&Format=" located in it. Today I will have access to a Windows 7 computer and I will test to see if I can reproduce the error. You might try removing the "&Format" part of the URL and see if that works. If it does then I can just remove it before opening the URL.
From your first post:
http://192.168.1.100:8000/download/A...eo/x-tivo-mpeg


I am sorry, that was based on the origional format from your first post. I have tried it with and without the "&Format="... Let me try it again tonight without. Sorry if I missed something.
__________________
TiVo S2 (Retired)
TiVo Series 3 (for sale)
TiVo HD (for sale)
TiVo Premier (2 TB Upgrade)
TiVo Roamio Plus
TiVo Mini
iPad TiVo app
TiVo Stream (Sold)
Personal Video Share powered by PyTiVo
bradleys is offline   Reply With Quote
Old 01-15-2013, 12:34 PM   #40
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
You should be using the unmodified URLs from the RSS feed that you get when you enter:

http://<Server_URL>:<Port>/rss

Server_URL and Port should be the same as what you set in the code.

I know Firefox doesn't show the urls in the RSS Feed but on my computer. I can click the listed .tivo link and have them play in Firefox. Or you can right click on the .tivo link and save the location and paste it in to VLC. View the page source to see the actual RSS Feed that was sent from my program. Chrome and IE show the actual RSS Feed code and you can just copy and paste.

Also, hope I don't sound frustrated or angry in my posts because I'm not. I enjoy programming and I really want to find this error and help you get it working. I have other feature ideas for this program so I would really want this to work on everyone's computer before going forward.

Edit:

I just tested the program on a Windows 7 computer and it worked fine without modifications.

Last edited by Allanon : 01-15-2013 at 12:44 PM.
Allanon is offline   Reply With Quote
Old 01-15-2013, 02:47 PM   #41
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 137
I did try the latest version, here's my result of pulling the RSS feed (get only a partial list) and clicking a link which tries to open in VLC:

Code:
192.168.2.16 - - [15/Jan/2013 12:48:56] "GET /rss HTTP/1.1" 200 -
RSS Feed Send

/download/I%27ll%20Be%20Seeing%20You.TiVo?Container=%2FNowPlaying&id=1334494

Video URL:  http://192.168.2.10:80/download/I%27ll%20Be%20Seeing%20You.TiVo?Container=%2FNowPlaying&id=1334494

192.168.2.16 - - [15/Jan/2013 12:49:07] "GET /download/I%27ll%20Be%20Seeing%20You.TiVo?Container=%2FNowPlaying&id=1334494 HTTP/1.1" 200 -

Decoding video

----------------------------------------
Exception happened during processing of request from ('192.168.2.16', 50824)
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 343, in handle
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 331, in handle_one_request
  File "/Volumes/iMac Storage/Downloads/kmttg_MacOSX_tools_v0p8l/tivodecode/Tivo Proxy Server 4.py", line 162, in do_GET
    decode = subprocess.Popen(['tivodecode', '-m', Tivo_MAK, '--', '-'],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 679, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
OSError: [Errno 2] No such file or directory
----------------------------------------
So still no joy. Ideas?
vanclute is offline   Reply With Quote
Old 01-15-2013, 03:09 PM   #42
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Quote:
Originally Posted by vanclute View Post
So still no joy. Ideas?
That error occurs when the program can't find tivodecode. Do you have tivodecode in the same folder and the program?
Allanon is offline   Reply With Quote
Old 01-15-2013, 03:24 PM   #43
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 1,461
I am going to start over tonight with a complete reinstall. But I want to duplicate your setup.

Can you tell me where you installed TivoProxy:

C:\Program Files (x86)\TivoProxy\

Where you installed Tivodecode:

C:\Program Files (x86)\TivoProxy\tivodecode\

Where you installed python:

C:\Python27\
__________________
TiVo S2 (Retired)
TiVo Series 3 (for sale)
TiVo HD (for sale)
TiVo Premier (2 TB Upgrade)
TiVo Roamio Plus
TiVo Mini
iPad TiVo app
TiVo Stream (Sold)
Personal Video Share powered by PyTiVo
bradleys is offline   Reply With Quote
Old 01-15-2013, 03:50 PM   #44
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Quote:
Originally Posted by bradleys View Post
I am going to start over tonight with a complete reinstall. But I want to duplicate your setup.

Can you tell me where you installed TivoProxy:

C:\Program Files (x86)\TivoProxy\

Where you installed Tivodecode:

C:\Program Files (x86)\TivoProxy\tivodecode\

Where you installed python:

C:\Python27\
I have Python in the c:\Python27 folder and for easy access I placed the "Tivo Proxy Server.py" and tivodecode.exe files on my desktop, but you can place them in any folder you like. I also have a batch file that looks like this:

Tivo Proxy Server.bat:
Code:
mode 150,10000
c:\python27\python.exe "Tivo Proxy Server.py"
pause
This is optional, I use it because it makes debugging the program easier. The pause command keeps the command window open when an error occurs.
Allanon is offline   Reply With Quote
Old 01-15-2013, 04:29 PM   #45
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 1,461
I will show you what I am getting:

I placed Tivo Proxy Server.py and Tivodecode on the desktop in a directory called Tivoproxy. This time I extracted Tivodecode into the directory tivodecode-0.2pre4 under Tivoproxy. Last time I extracted it directly into the directory. Same outcome. I edited Tivo Proxy Server.py and updated the params thusly:

Tivo_MAK = 'mymak'
Server_URL = '192.168.1.6'
Tivo_URL = '192.168.1.7'
Port = 10000



Right Click Tivo Proxy Server.py -> Open with -> Python and the console registers Serving at Port 10000


Open the URL: in firefox and I get the RSS feed in xml form.

Attached Images
File Type: jpg one.jpg (19.2 KB, 128 views)
File Type: jpg two.jpg (15.5 KB, 128 views)
File Type: jpg three.jpg (53.4 KB, 128 views)
__________________
TiVo S2 (Retired)
TiVo Series 3 (for sale)
TiVo HD (for sale)
TiVo Premier (2 TB Upgrade)
TiVo Roamio Plus
TiVo Mini
iPad TiVo app
TiVo Stream (Sold)
Personal Video Share powered by PyTiVo

Last edited by bradleys : 01-15-2013 at 04:49 PM.
bradleys is offline   Reply With Quote
Old 01-15-2013, 04:36 PM   #46
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 1,461
I then try to open a url in firefox formatted in this way:
Code:
http://192.168.1.6:10000/download/Face%20Off.TiVo?Container=%2FNowPlaying&id=2338141



And get a result in the python console showing the error:


I get the exact same results running via VLN
Attached Images
File Type: jpg four.jpg (16.0 KB, 128 views)
File Type: jpg five.jpg (99.6 KB, 126 views)
__________________
TiVo S2 (Retired)
TiVo Series 3 (for sale)
TiVo HD (for sale)
TiVo Premier (2 TB Upgrade)
TiVo Roamio Plus
TiVo Mini
iPad TiVo app
TiVo Stream (Sold)
Personal Video Share powered by PyTiVo

Last edited by bradleys : 01-15-2013 at 04:53 PM.
bradleys is offline   Reply With Quote
Old 01-15-2013, 06:45 PM   #47
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 137
Quote:
Originally Posted by Allanon View Post
That error occurs when the program can't find tivodecode. Do you have tivodecode in the same folder and the program?
Yep sure do, this server script is in the tivodecode directory.
vanclute is offline   Reply With Quote
Old 01-15-2013, 07:06 PM   #48
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Bradleys, try running the program as administrator. Also try coping the URL from the RSS feed and pasting it in to VLC. The video doesn't play in every video player. My Firefox browser shows a VLC logo instead of a Quicktime logo when playing the video in the browser.

Vanclute, I'm unfamiliar with Mac's OS so I really don't know what is causing the problem. Maybe someone with Mac experience and Python knowledge can step in and help?
Allanon is offline   Reply With Quote
Old 01-15-2013, 08:24 PM   #49
vanclute
Registered User
 
Join Date: Aug 2003
Posts: 137
Yeah I feel like it's a python issue but I have almost no experience with it at all. I do PHP development so it doesn't look totally unfamiliar but it's different enough to have me stumped. I did install the latest python version but that doesn't seem to have helped.
vanclute is offline   Reply With Quote
Old 01-15-2013, 09:29 PM   #50
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 1,461
OK, I created a batch file and ran it as administrator in VLN:

Still does not work, but the error code looks a little different. Personally, I think it is having problems finding tivodecode...

Code:
C:\Windows\system32>c:\python27\python.exe "C:\Users\Scott\Desktop\TivoProxy\Tivo Proxy Server.py"
serving at port 10000
/rss
HOME_OFFICE.home - - [15/Jan/2013 21:27:58] "GET /rss HTTP/1.1" 200 -
RSS Feed Send

/favicon.ico
/download/The%20Big%20Bang%20Theory.TiVo?Container=%2FNowPlaying&id=2338150

Video URL:  http://192.168.1.7:80/download/The%20Big%20Bang%20Theory.TiVo?Container=%2FNowPlaying&id=2338150

HOME_OFFICE.home - - [15/Jan/2013 21:28:10] "GET /download/The%20Big%20Bang%20Theory.TiVo?Container=%2FNowPlaying&id=2338150 HTTP/1.1" 200 -

Decoding video

----------------------------------------
Exception happened during processing of request from ('192.168.1.6', 54014)
Traceback (most recent call last):
  File "c:\python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "c:\python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "c:\python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "c:\python27\lib\SocketServer.py", line 638, in __init__
    self.handle()
  File "c:\python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "c:\python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\Users\Scott\Desktop\TivoProxy\Tivo Proxy Server.py", line 160, in do_GET
    decode = subprocess.Popen(['tivodecode', '-m', Tivo_MAK, '--', '-'],shell=False,bufsize=0,stdin=subprocess.PIPE,stdout=subprocess.PIPE)
  File "c:\python27\lib\subprocess.py", line 679, in __init__
    errread, errwrite)
  File "c:\python27\lib\subprocess.py", line 896, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
----------------------------------------

__________________
TiVo S2 (Retired)
TiVo Series 3 (for sale)
TiVo HD (for sale)
TiVo Premier (2 TB Upgrade)
TiVo Roamio Plus
TiVo Mini
iPad TiVo app
TiVo Stream (Sold)
Personal Video Share powered by PyTiVo
bradleys is offline   Reply With Quote
Old 01-17-2013, 04:25 PM   #51
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Bradleys, give this a try. It is a version of the program that includes tivodecode. Just copy the folder on to your desktop and run Tivo Server Proxy.bat as admin. If this doesn't work then I have no idea why it's failing on your computer. I've run this exact build on Windows 7 and it worked.

The tivodecode.exe included in this attachment is for Windows only.
Attached Files
File Type: zip Tivo Proxy Server.zip (24.3 KB, 10 views)
Allanon is offline   Reply With Quote
Old 01-18-2013, 05:54 PM   #52
bradleys
It'll be fine....
 
Join Date: Oct 2007
Posts: 1,461
I brought home my work laptop that is running Windows XP and did a fresh install on everything... This works perfectly.

I also installed it on my media server and it works great in that environment as well... But, just does not work on my Windows 7 desktop. Weird....
__________________
TiVo S2 (Retired)
TiVo Series 3 (for sale)
TiVo HD (for sale)
TiVo Premier (2 TB Upgrade)
TiVo Roamio Plus
TiVo Mini
iPad TiVo app
TiVo Stream (Sold)
Personal Video Share powered by PyTiVo

Last edited by bradleys : 01-18-2013 at 07:03 PM.
bradleys is offline   Reply With Quote
Old 01-20-2013, 09:27 PM   #53
tatergator1
Registered User
 
Join Date: Mar 2008
Location: Columbus, Ohio
Posts: 692
I've also tried my hand at getting this setup. I've had partial success. It seems to be choking on something in my XML file. I've got TivoServer.py running fine and I am using the "podcast" method in VLC to serve the files. Using this method, it pulls in only the most recent 6 programs recorded. When I then attempt to play any of those files, it is unable to serve the first 5, which is probably a result of Time Warner's "copy once" CCI byte. The 6th program is from a local channel and is not affected by the CCI byte.

I know I'm probably out of luck regarding that, but the real question is what is causing the XML to cut-out after the first 6 most recent shows.

Code:
serving at port 8000
/rss
Desktop - - [20/Jan/2013 22:24:58] "GET /rss HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.6', 59854)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 639, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 343, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 331, in handle_one_request
    method()
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 130, in
do_GET
    writeRSS(self.wfile)
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 96, in w
riteRSS
    p.feed(XML.read(), wfile)
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 42, in f
eed
    self._parser.Parse(data, 0)
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 64, in e
nd
    self.wfile.write('\t\t<' + tag + '>' + self.data + '</' + tag + '>\n')
  File "C:\Python27\lib\socket.py", line 316, in write
    data = str(data) # XXX Should really reject non-string non-buffers
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 33:
 ordinal not in range(128)
----------------------------------------
When I try to play the 6 videos, I get:

Code:
----------------------------------------
/download/Max%20%26%20Ruby.TiVo?Container=%2FNowPlaying&id=232446

Video URL:  http://192.168.1.100:80/download/Max...ying&id=232446


Desktop - - [20/Jan/2013 22:28:20] "GET /download/Max%20%26%20Ruby.TiVo?Container=%2FNowPlaying&id=2
32446 HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.6', 59866)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 639, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 343, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 331, in handle_one_request
    method()
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 153, in do_GET
    videoFile =  openUrl(link, 'tivo', Tivo_MAK)
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 24, in openUrl
    return urllib2.urlopen(url)
  File "C:\Python27\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 432, in error
    result = self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1072, in http_error_401
    host, req, headers)
  File "C:\Python27\lib\urllib2.py", line 957, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "C:\Python27\lib\urllib2.py", line 968, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 438, in error
    return self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 521, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
----------------------------------------
/download/Mickey%20Mouse%20Clubhouse.TiVo?Container=%2FNowPlaying&id=232443

Video URL:  http://192.168.1.100:80/download/Mic...=%2FNowPlaying
&id=232443

Desktop - - [20/Jan/2013 22:28:20] "GET /download/Mickey%20Mouse%20Clubhouse.TiVo?Container=%2FNowPl
aying&id=232443 HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.6', 59871)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 639, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 343, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 331, in handle_one_request
    method()
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 153, in do_GET
    videoFile =  openUrl(link, 'tivo', Tivo_MAK)
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 24, in openUrl
    return urllib2.urlopen(url)
  File "C:\Python27\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 432, in error
    result = self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1072, in http_error_401
    host, req, headers)
  File "C:\Python27\lib\urllib2.py", line 957, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "C:\Python27\lib\urllib2.py", line 968, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 438, in error
    return self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 521, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
----------------------------------------
/download/Blue's%20Clues.TiVo?Container=%2FNowPlaying&id=232448

Video URL:  http://192.168.1.100:80/download/Blu...ying&id=232448

Desktop - - [20/Jan/2013 22:28:21] "GET /download/Blue's%20Clues.TiVo?Container=%2FNowPlaying&id=232
448 HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.6', 59876)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 639, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 343, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 331, in handle_one_request
    method()
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 153, in do_GET
    videoFile =  openUrl(link, 'tivo', Tivo_MAK)
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 24, in openUrl
    return urllib2.urlopen(url)
  File "C:\Python27\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 432, in error
    result = self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1072, in http_error_401
    host, req, headers)
  File "C:\Python27\lib\urllib2.py", line 957, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "C:\Python27\lib\urllib2.py", line 968, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 438, in error
    return self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 521, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
----------------------------------------
/download/Hercules.TiVo?Container=%2FNowPlaying&id=234088

Video URL:  http://192.168.1.100:80/download/Her...ying&id=234088

Desktop - - [20/Jan/2013 22:28:21] "GET /download/Hercules.TiVo?Container=%2FNowPlaying&id=234088 HT
TP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.6', 59881)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 639, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 343, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 331, in handle_one_request
    method()
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 153, in do_GET
    videoFile =  openUrl(link, 'tivo', Tivo_MAK)
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 24, in openUrl
    return urllib2.urlopen(url)
  File "C:\Python27\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 432, in error
    result = self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1072, in http_error_401
    host, req, headers)
  File "C:\Python27\lib\urllib2.py", line 957, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "C:\Python27\lib\urllib2.py", line 968, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 438, in error
    return self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 521, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
----------------------------------------
/download/Mickey%20Mouse%20Clubhouse.TiVo?Container=%2FNowPlaying&id=232231

Video URL:  http://192.168.1.100:80/download/Mic...=%2FNowPlaying
&id=232231

Desktop - - [20/Jan/2013 22:28:22] "GET /download/Mickey%20Mouse%20Clubhouse.TiVo?Container=%2FNowPl
aying&id=232231 HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.6', 59886)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 639, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 343, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 331, in handle_one_request
    method()
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 153, in do_GET
    videoFile =  openUrl(link, 'tivo', Tivo_MAK)
  File "C:\Users\Andrew\Desktop\Tivo Server\Tivo Proxy Server.py", line 24, in openUrl
    return urllib2.urlopen(url)
  File "C:\Python27\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 432, in error
    result = self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1072, in http_error_401
    host, req, headers)
  File "C:\Python27\lib\urllib2.py", line 957, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "C:\Python27\lib\urllib2.py", line 968, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 438, in error
    return self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 521, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
----------------------------------------
/download/CBS%20Evening%20News%20With%20Scott%20Pelley.TiVo?Container=%2FNowPlaying&id=232019

Video URL:  http://192.168.1.100:80/download/CBS...ying&id=232019


Desktop - - [20/Jan/2013 22:28:22] "GET /download/CBS%20Evening%20News%20With%20Scott%20Pelley.TiVo?Container=%2FNowPlaying&id=232019 HTTP/1.1" 200 -

Decoding video

Encryption by QUALCOMM ;)
I'd appreciate any effort you might make to see what's going on. Also, If i try to load the RSS via Firefox, I get the following:

Quote:
XML Parsing Error: no element found
Location: http://192.168.1.6:8000/rss
Line Number 45, Column 1:
Here's the accompanying XML file:



Thanks,
Attached Files
File Type: zip TiVoConnect.zip (3.1 KB, 3 views)

Last edited by tatergator1 : 01-20-2013 at 09:37 PM.
tatergator1 is offline   Reply With Quote
Old 01-21-2013, 12:18 AM   #54
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Tatergator1, the Tivo XML file had an episode title with unicode (Daisy, la Quinceañera). I fixed the program so it replaces the unicode with the equivalent ascii character. If there isn't one then a ? is put in place of the character.

Also, try running the program as administrator to get rid of the forbidden error.

Attached is the updated code:
Attached Files
File Type: zip Tivo Proxy Server.zip (2.0 KB, 2 views)
Allanon is offline   Reply With Quote
Old 01-21-2013, 12:09 PM   #55
tatergator1
Registered User
 
Join Date: Mar 2008
Location: Columbus, Ohio
Posts: 692
Thanks so much for the update. I really appreciate you taking the time to review my situation. My RSS feed has increased to 16 times and no errors are listed anywhere.

The question is, why isn't it parsing all 90+ items that I can see in my XML file?

As for the Forbidden 403's, I'm very confident those are related to the copy protection blocking transfers of those programs. I am currently running as admin, so that shouldn't be a problem. For example, with the larger RSS feed, I can play 3 of the 16 items, with the 3 items I can play being on CBS and PBS, which Time Warner Cable can't legally copy-protect.

Any thoughts on why I only get 16 of my 90+ items?
tatergator1 is offline   Reply With Quote
Old 01-21-2013, 01:19 PM   #56
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Quote:
Originally Posted by tatergator1 View Post
The question is, why isn't it parsing all 90+ items that I can see in my XML file?
Is this a different XML file than the one posted? The one posted only had 16 items.
Allanon is offline   Reply With Quote
Old 01-21-2013, 07:47 PM   #57
tatergator1
Registered User
 
Join Date: Mar 2008
Location: Columbus, Ohio
Posts: 692
My mistake. There are only 16 items in the XML generated yesterday evening, What was throwing me off was the <Total Items> line that shows 98. I just reloaded the XML file off the Tivo Premiere and it's still only showing the most recent 16 Items, while <total items> is now 99.

Now the question is why is the Tivo generated XML file incomplete?

Update: I just loaded the XML off my old Series 2 DT for the first time as a test and the generated XML shows <total items> 58 and <item count> 58. Everything looks good from the Series 2. Now, why is the Premiere XML incomplete?

Another update:

Found this discussion here.

Looks like Premiere's have deliberately truncated XML's. I can get up to 50 items in the XML by adding &ItemCount=50 to the URL. I would then need to run another XML grab by using AnchorOffset=51&ItemCount=50. Makes things a bit more complicated.

Last edited by tatergator1 : 01-21-2013 at 08:06 PM.
tatergator1 is offline   Reply With Quote
Old 01-21-2013, 11:18 PM   #58
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Tatergator1, I will update the program to account for this. Guess I better start recording some shows so I can test.
Allanon is offline   Reply With Quote
Old 01-22-2013, 01:06 AM   #59
Allanon
Registered User
 
Join Date: Nov 2005
Posts: 494
Attached is an updated version of the code. This version will list all videos in the RSS feed, not just the first 16.

Tatergator1, thanks for discovering the bug and providing a link to a way to solve the problem. It made fixing the problem very easy.
Attached Files
File Type: zip Tivo Proxy Server.zip (2.1 KB, 13 views)
Allanon is offline   Reply With Quote
Old 01-22-2013, 12:36 PM   #60
tatergator1
Registered User
 
Join Date: Mar 2008
Location: Columbus, Ohio
Posts: 692
That did it! Thanks for taking the time to address my problems. This should be a good way to let my wife watch some of her shows in the Office/Craft Room without having to spend the 10+ minutes to download the whole .tivo file. This is a nice way to MRV without the Tivo. You give up trick-play capabilities, but you get near-instant playback straight from the host Tivo.

This will be a nice solution until Tivo finally releases more details and pricing on the Mini!
tatergator1 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 - 2014, 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 08:24 AM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |