Ok, here are some notes about what I just figured out:
By default, GStreamer errors call self.next_song(). If the auth token is still valid, this goes through the rest of the songs in the list, and if it runs out, it gets a new playlist and keeps playing.
But if the auth token is invalid, it ends up in eb() and retries. So all that's needed, apparently, is to advance to the next song--which Pithos already does!
The problem may be this error I just encountered:
INFO - pithos:eb:307 - Automatic reconnect after invalid auth token
ERROR - pandora:xmlrpc_call:135 - fault: org.apache.xmlrpc.XmlRpcException: For input string: "91198140128"
WARNING - pithos:eb:314 - Traceback (most recent call last):
File "/home/me/Projects/Python/Pithos/620854/./pithos/gobject_worker.py", line 34, in _run
result = command(*args)
File "/home/me/Projects/Python/Pithos/620854/./pithos/pandora/pandora.py", line 169, in connect
user = self.xmlrpc_call('listener.authenticateListener', [user, password], [], secure=True)
File "/home/me/Projects/Python/Pithos/620854/./pithos/pandora/pandora.py", line 136, in xmlrpc_call
code, msg = fault.split('|')[2:]
ValueError: need more than 0 values to unpack
This same error can happen whenever Pithos connects, even on startup. And I filed this as lp:905204.
So, if I understand everything correctly (and I may not), this bug is occurring because lp:905204 is happening sometimes--otherwise it's already handled.
Ok, here are some notes about what I just figured out:
By default, GStreamer errors call self.next_song(). If the auth token is still valid, this goes through the rest of the songs in the list, and if it runs out, it gets a new playlist and keeps playing.
But if the auth token is invalid, it ends up in eb() and retries. So all that's needed, apparently, is to advance to the next song--which Pithos already does!
The problem may be this error I just encountered:
INFO - pithos:eb:307 - Automatic reconnect after invalid auth token xmlrpc_ call:135 - fault: org.apache. xmlrpc. XmlRpcException : For input string: "91198140128" me/Projects/ Python/ Pithos/ 620854/ ./pithos/ gobject_ worker. py", line 34, in _run me/Projects/ Python/ Pithos/ 620854/ ./pithos/ pandora/ pandora. py", line 169, in connect call('listener. authenticateLis tener', [user, password], [], secure=True) me/Projects/ Python/ Pithos/ 620854/ ./pithos/ pandora/ pandora. py", line 136, in xmlrpc_call '|')[2: ]
ERROR - pandora:
WARNING - pithos:eb:314 - Traceback (most recent call last):
File "/home/
result = command(*args)
File "/home/
user = self.xmlrpc_
File "/home/
code, msg = fault.split(
ValueError: need more than 0 values to unpack
This same error can happen whenever Pithos connects, even on startup. And I filed this as lp:905204.
So, if I understand everything correctly (and I may not), this bug is occurring because lp:905204 is happening sometimes- -otherwise it's already handled.