sspiff / lms-plugin-pyrrha

Pyrrha - Daughter of Pandora
GNU General Public License v2.0
13 stars 4 forks source link

support multiple accounts #26

Open sspiff opened 5 months ago

sspiff commented 5 months ago

Store multiple username/password pairs, allow easy switching between them.

gitbakos commented 4 months ago

One use case for this feature would be to allow streaming different Pandora stations to multiple players. Each Squeezebox came with a lifetime authorization to play Pandora streams, so the Logitech Pandora plugin required a single username/password (free account was OK) and allowed each squeezebox to play a different stream. Not sure how authentication was handled for this feature, but could have been the reason the plugin was dependent on mysqueezebox.com. The level of service was between a free and a premium account, with intermediate streaming quality and occasional but less frequent ads.

For now Pandora seems to allow Pyrrha to stream different stations to multiple players, just as it was possible with the original Logitech plugin. This seems to go against Pandora's stated policy that free and premium accounts are allowed only one live stream. Family accounts are allowed to up to 6 username/password pairs, each of which can have a separate live stream.

It is possible that Pandora will eventually enforce this policy, and in that case in order to play N streams simultaneously one would need to store N username/password pairs each assigned to a player and used to authenticate the stream requested for that player. This use case is somewhat different from switching between accounts to change the list of favorite stations. Pyrrha would need to keep track of the player(s) using each username/password pair, and the credentials used to obtain the list of favorite stations could be different than the credentials used to authorize the player when one of these favorites is selected to be played.