 |
pyTivo Discussion Forum Answers and the development of pyTivo a TiVo transcoding server
|
|
| Author |
Message |
windracer

Joined: 04 Jan 2008 Posts: 219 Location: St. Pete, FL
|
Posted: Wed Jun 25, 2008 1:35 pm Post subject: |
|
|
Finally getting around to playing with the push feature ... very cool.
Is there a way to override the TSN display on the web admin page with a nicer name? Maybe using the TiVo-specific section of pytivo.conf? That way the TiVo list would show Office, Bedroom, etc. instead of 230xxxxxx, 648xxxxxx, etc.? _________________ pyTiVo on Ubuntu 11.10 (Oneiric) |
|
| Back to top |
|
 |
PaulS
Joined: 05 Jan 2008 Posts: 184
|
Posted: Wed Jun 25, 2008 1:36 pm Post subject: |
|
|
Which branch are you using for "push" ?
I can't remember whose branch I'm using, but it's not working. |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 219 Location: St. Pete, FL
|
Posted: Wed Jun 25, 2008 1:52 pm Post subject: |
|
|
I'm using wmcbrine's branch, and the last time I upgraded was on 6/13 so whatever his current build was at that time.
All I had to do was add tivo_username and tivo_password to my conf file and I was able to push an .AVI to my THD through the web interface. I haven't tried web video yet. _________________ pyTiVo on Ubuntu 11.10 (Oneiric) |
|
| Back to top |
|
 |
PaulS
Joined: 05 Jan 2008 Posts: 184
|
Posted: Wed Jun 25, 2008 1:55 pm Post subject: |
|
|
I think I'm using krkeegan's latest branch, although I'm not sure since I'm not in front of my pyTivo server at the moment.
I have defined those values, and when I attempt to push a file to my S3, I'm presented with an error.
I'll give wmcbrine's branch a spin tonight and see if that clears things up. He's done quite a bit of merging/cleaning over the past week or so. |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Wed Jun 25, 2008 10:17 pm Post subject: |
|
|
| windracer wrote: | Is there a way to override the TSN display on the web admin page with a nicer name? |
Currently, the list of TiVos is derived from those that connect to pyTivo once it broadcasts its availability. The http requests don't include the TiVo's name. To get it, pyTivo would either have to connect back to the connecting TiVos on port 2190, or wait, and collect the TiVos' own announcements. The former is what I do in my TiVo Remote program, and I'm thinking of adapting that to pyTivo. (Waiting for the announcements is really slow.) _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Sun Jun 29, 2008 9:33 pm Post subject: |
|
|
OK, I've implemented the name-instead-of-tsn thing and put it in my repo. Note that this causes some extra requests, and you may see some error messages, but they're harmless.
Edit: Got those suppressed. _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
jcthorne
Joined: 30 Jan 2008 Posts: 243 Location: Houston, TX
|
Posted: Tue Jul 01, 2008 5:20 pm Post subject: |
|
|
I just downloaded WMCs latest snapshot 7/1 and unpacked it. Used the web admin tool to add tivo_username and tivo_password to my server section.
Then went to the videos section and selected one by name and the clicked send to tivo
pytivo waited a while and the localhost screen came back. No errors on the web browser screen or the pytivo window. The tivo is not transferring the file. What am I doing wrong? Did I miss some setting or other to get this up and running. Never used push before, now just looked like a good time to jump in and try.
Thanks!
OK, I got this one figured out. Had to change the mind.tivo server name in mind.py file to stagingmind.tivo due to the version of the tivo software I am not allowed to talk about.
Anyway the push worked....sort of.
Last edited by jcthorne on Fri Jul 11, 2008 1:22 am; edited 1 time in total |
|
| Back to top |
|
 |
PaulS
Joined: 05 Jan 2008 Posts: 184
|
Posted: Tue Jul 01, 2008 5:38 pm Post subject: |
|
|
Same here with a 6/30 wmcbrine snapshot. Lots of console output, but the file never gets transferred to the TiVo.
I'm not in front of my pyTivo right now, but can provide output later on tonight if needed. |
|
| Back to top |
|
 |
jcthorne
Joined: 30 Jan 2008 Posts: 243 Location: Houston, TX
|
Posted: Fri Jul 11, 2008 1:25 am Post subject: |
|
|
| The pushed video ignored the seriesname and seriesid in the metadata file and placed the file in the now playing list rather than the folder for the series where it belongs. I see from reading this thread that others have seen the same behaviour. Wish I could help fix it. Perhaps WMcBrine will have some time for coding pytivo things this weekend......I REALLY like where this is headed though. The push feature works pretty slick! |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 219 Location: St. Pete, FL
|
Posted: Fri Jul 11, 2008 1:08 pm Post subject: |
|
|
| wmcbrine wrote: | OK, I've implemented the name-instead-of-tsn thing and put it in my repo. |
I missed this while I was away on vacation last week ... it's great, thanks!
edit: wait, it's not working. When I try to send a file, pyTivo crashes. It looks like it's sending the NAME of the TiVo in the request instead of the TSN:
| Quote: | 127.0.0.1 - - [11/Jul/2008 10:30:24] "GET /TiVoConnect?Command=Push&Container=Video+Library&File=%2FMovies%2Fhome-movie.avi&tsn=Family+Room HTTP/1.1" 302 -
Traceback (most recent call last):
File "/usr/lib/python2.5/SocketServer.py", line 464, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.5/SocketServer.py", line 522, in __init__
self.handle()
File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/usr/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
self.handle_one_request()
File "/usr/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
method()
File "/usr/local/tivo/pyTivo/httpserver.py", line 94, in do_GET
method(self, query)
File "/usr/local/tivo/pyTivo/plugins/video/video.py", line 502, in Push
handler.send_response(302)
File "/usr/lib/python2.5/BaseHTTPServer.py", line 370, in send_response
self.send_header('Server', self.version_string())
File "/usr/lib/python2.5/BaseHTTPServer.py", line 376, in send_header
self.wfile.write("%s: %s\r\n" % (keyword, value))
File "/usr/lib/python2.5/socket.py", line 262, in write
self.flush()
File "/usr/lib/python2.5/socket.py", line 249, in flush
self._sock.sendall(buffer)
error: (32, 'Broken pipe') |
_________________ pyTiVo on Ubuntu 11.10 (Oneiric)
Last edited by windracer on Fri Jul 11, 2008 2:35 pm; edited 1 time in total |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 219 Location: St. Pete, FL
|
Posted: Fri Jul 11, 2008 1:21 pm Post subject: |
|
|
Is there a way to cancel a push?
I initiated a push through the web admin page but apparently the file has an invalid audio codec so ffmpeg can't process it. In my pytivo.log I see the request just looping over and over again as the TiVo requests the file and pyTivo tries to send it.
I did this remotely, so I'm not near my TiVo. Can this only be cancelled from the To Do List of the box? I tried restarting pyTivo but of course that didn't help since it's the TiVo itself initiating the request.
edit: nevermind, it looks like after 30 attempts it gave up. Whew. _________________ pyTiVo on Ubuntu 11.10 (Oneiric) |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Fri Jul 11, 2008 9:31 pm Post subject: |
|
|
| windracer wrote: | edit: wait, it's not working. When I try to send a file, pyTivo crashes. It looks like it's sending the NAME of the TiVo in the request instead of the TSN: |
Yeah, that's normal now -- it doesn't make it crash. But I can't really tell what the problem is there.
Assuming it's repeatable, you may have to turn on debug to see what's happening. _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 219 Location: St. Pete, FL
|
Posted: Sun Jul 13, 2008 3:20 am Post subject: |
|
|
Ok, it must have been a fluke 'cause it's working now.
Here's some strangeness though: how does pyTivo decide on the name of the folder used for pushed videos? For some reason, when I transfer multiple videos they are ending up in a folder called "Dick Clark's New Years Rocking Eve 2008" which happens to be the name of the first video I tried pushing several weeks back. Is there any way to reset this?
Also, once all the recordings are in that folder, the titles just say "" so you have to go into the program details to see which one is which. _________________ pyTiVo on Ubuntu 11.10 (Oneiric) |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Sun Jul 13, 2008 7:19 am Post subject: |
|
|
See wgw's comments on the previous page. Yeah, I know, this needs fixing. _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 219 Location: St. Pete, FL
|
Posted: Sun Jul 13, 2008 4:45 pm Post subject: |
|
|
Excellent, I'll try that ... thanks again.
edit: worked perfectly! _________________ pyTiVo on Ubuntu 11.10 (Oneiric) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|