|
| Author |
Message |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Tue Mar 25, 2008 10:01 pm Post subject: |
|
|
| I think it is working. I have a mysterious blue light on the box but nothing in the NPL. I will wait and see what I get. I was surprised it took longer to start than I imagined. |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Tue Mar 25, 2008 10:27 pm Post subject: |
|
|
Yup it works, well at least in the way I think you intend it to work for a test.
I get a show titled test on my TiVo. It is listed as partial and only plays like 30 seconds or something, but I think this is what you intended it to do based on the code I see.
Nice work!! |
|
| Back to top |
|
 |
real_armooo pyTivo Creator
Joined: 23 Mar 2008 Posts: 42
|
Posted: Wed Mar 26, 2008 5:49 am Post subject: |
|
|
| Ya that is what I have happing as well. It seems like the tivo side is still polling, it seems as slow as unbox etc to me. |
|
| Back to top |
|
 |
real_armooo pyTivo Creator
Joined: 23 Mar 2008 Posts: 42
|
Posted: Wed Mar 26, 2008 2:50 pm Post subject: |
|
|
I updated my repo with a version of pytivo that supports pushing videos.
You need to add tivo_username and tivo_password to your pyTivo.conf.
After that you can goto http://localhost:9032 and click on your share name. Select the tivo from the drop down an hit "Send to tivo". It seems to work for me. |
|
| Back to top |
|
 |
sicklybutsexy
Joined: 05 Mar 2008 Posts: 91 Location: chicago
|
Posted: Wed Mar 26, 2008 3:43 pm Post subject: |
|
|
| how do you add tivo_username and tivo_password to the pyTivo.conf file, can you give an example? |
|
| Back to top |
|
 |
sicklybutsexy
Joined: 05 Mar 2008 Posts: 91 Location: chicago
|
Posted: Wed Mar 26, 2008 4:03 pm Post subject: |
|
|
| also, what is my username and password? |
|
| Back to top |
|
 |
real_armooo pyTivo Creator
Joined: 23 Mar 2008 Posts: 42
|
Posted: Wed Mar 26, 2008 4:44 pm Post subject: |
|
|
[Server]
tivo_username = username
tivo_password = password
They are what you use on tivo.com. And to "link" your account in tivo desktop plus. |
|
| Back to top |
|
 |
sicklybutsexy
Joined: 05 Mar 2008 Posts: 91 Location: chicago
|
Posted: Wed Mar 26, 2008 5:52 pm Post subject: |
|
|
| It won't work for me. I pick the share, select the tivo (only one of my tivos shows up) and then click "send to Tivo". Then the web page changes to a white screen and nothing happens. any ideas? this isn't a windows problem is it? |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Wed Mar 26, 2008 6:09 pm Post subject: |
|
|
FYI in order to use this new feature you will need to have Python 2.5!
Yeah I think that is all I needed python 2.5.
I breifly got a blank page but that was because I failed to enter the tivo_username and password. It should take you back to the page you were previously at.
I have to wait now and see if this is actually working. |
|
| Back to top |
|
 |
real_armooo pyTivo Creator
Joined: 23 Mar 2008 Posts: 42
|
Posted: Wed Mar 26, 2008 6:27 pm Post subject: |
|
|
| I just found that if you connect to localhost it will tell your tivo to download from 127.0.0.1. So you need to use your real IP for now. |
|
| Back to top |
|
 |
gmd
Joined: 08 Jan 2008 Posts: 28
|
Posted: Wed Mar 26, 2008 6:28 pm Post subject: |
|
|
Exception happened during processing of request from ('192.168.1.4', 51867)
Traceback (most recent call last):
File "SocketServer.py", line 464, in process_request_thread
self.finish_request(request, client_address)
File "SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "SocketServer.py", line 522, in __init__
self.handle()
File "BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "BaseHTTPServer.py", line 310, in handle_one_request
method()
File "/home/gdunn/bin/pyTivo-20080326/httpserver.py", line 85, in do_GET
method(self, query)
File "/home/gdunn/bin/pyTivo-20080326/plugins/video/video.py", line 470, in Push
subtitle = file_info['name'])
File "/home/gdunn/bin/pyTivo-20080326/mind.py", line 29, in pushVideo
offer_id, content_id = self.__bodyOfferModify(tsn, pc_body_id, description, duration, size, title, subtitle, url)
File "/home/gdunn/bin/pyTivo-20080326/mind.py", line 99, in __bodyOfferModify
raise Exception(ElementTree.tostring(xml))
Exception: <error><code>badArgument</code><text>IO error reading request body: java.io.IOException: unexpected type 114</text></error> _________________ pyTivoMetaThis - metadata via python - http://trac.kurai.org |
|
| Back to top |
|
 |
real_armooo pyTivo Creator
Joined: 23 Mar 2008 Posts: 42
|
Posted: Wed Mar 26, 2008 6:36 pm Post subject: |
|
|
gmd, I updated a log statement to see what data was sent.
Could you try it again. |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Wed Mar 26, 2008 6:47 pm Post subject: |
|
|
| Armooo, in mind.py is it possible to replace xml.etree.elementree with xml.dom instead since this is in python2.4? I know it is not as easy to use and the code looks worse with it, but mind.py does not do too much xml interpretation. |
|
| Back to top |
|
 |
sicklybutsexy
Joined: 05 Mar 2008 Posts: 91 Location: chicago
|
Posted: Wed Mar 26, 2008 7:10 pm Post subject: |
|
|
| I have success although I can't play it yet. |
|
| Back to top |
|
 |
sicklybutsexy
Joined: 05 Mar 2008 Posts: 91 Location: chicago
|
Posted: Wed Mar 26, 2008 7:11 pm Post subject: |
|
|
| playing it now and working. |
|
| Back to top |
|
 |
|