|
| Author |
Message |
JonMikelV
Joined: 22 Feb 2008 Posts: 40
|
Posted: Tue Mar 04, 2008 9:05 pm Post subject: Dual pyTivo servers, um, dueling |
|
|
If I have pyTivo running on two different machines, my NPL seems to flip flop between showing one or the other, but not both. I've got each of them set up with a different port # but I noticed beacon.py line 84 says:
b.add_service('TiVoMediaServer:9032/http')
I found another hard coded 9032 in httpserver.py around line 128. Ditto for the versions in the plugins folders.
I'm not exactly sure what all the services stuff does yet, but do these 9032s actually affect what port is used or does "port = config.getPort()" in pyTivo.py actually control it?
Thanks.
Jon-Mikel |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
|
| Back to top |
|
 |
JonMikelV
Joined: 22 Feb 2008 Posts: 40
|
Posted: Wed Mar 05, 2008 1:47 pm Post subject: |
|
|
Thanks! Is there a reason it's a fixed # instead of random, or 6 chars of the start time in seconds, something that includes port #, or even last 6 of the IP?
I mean, I realize this is how the TiVo recognizes different devices but would there be a problem if the GUID changed with each startup of the service?
Thanks again!
Jon-Mikel |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 514
|
Posted: Wed Mar 05, 2008 7:37 pm Post subject: |
|
|
I can't see how it would be a problem, no. I proposed this back when armooo was still around, but nothing came of it, and I guess I kinda forgot about it.
There is a weird effect that you can see sometimes if you stop pyTivo and start it up with a different GUID while you're still in the Now Playing List: the whole list starts to flicker. However, you can stop it just by moving the highlight bar off of the pyTivo shares. _________________ My pyTivo fork |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Wed Mar 05, 2008 11:46 pm Post subject: |
|
|
| I mean maybe the ideal solution would just be to have pyTivo generate a random six digit number and write it to the pyTivo.conf file if non exists. |
|
| Back to top |
|
 |
|