pianobar icon indicating copy to clipboard operation
pianobar copied to clipboard

station "mode" selection fails with "Error: Unknown"

Open netllama opened this issue 4 years ago • 2 comments

Subject of the issue

I just upgraded to 2020-11-28 to use the new(ish) station "modes" feature. However, when I try to set a mode, it always fails with "Error: unknown".

Your environment

  • version of pianobar: 2020-11-28
  • your Linux distribution and release version: Fedora-33-x86_64
  • ffmpeg/libav version and the flags it was compiled with (if you compiled yourself): ffmpeg-4.3.2-2.fc33.x86_64
  • your config file
user = [email protected]
password = XXX
act_stationaddbygenre = g
act_songinfo = i
act_songnext = n
act_quit = q
act_stationchange = s

Steps to reproduce

[?] Delete [a]rtist seeds or [f]eedback? Manage [m]ode? m
(i) Fetching modes... Ok.
         0) My Station: The station experience you know and love. (active)
         1) Crowd Faves: You’ll hear the most Thumbed Up songs by other listeners.
         2) Discovery: You’ll hear more artists who don’t usually play on this station.
         3) Deep Cuts: You’ll hear less familiar songs from station artists.
         4) Artist Only: You’ll only hear songs from the station artist.
[?] Pick a new mode: 4
(i) Selecting mode "Artist Only"... Error: Unknown.

Expected behaviour

Mode change should be saved

netllama avatar Jun 20 '21 22:06 netllama

I've noticed that this only seems to reproduce with mode=4. the other modes do work ok

netllama avatar Jun 20 '21 22:06 netllama

Artist Only is only available for premium users. pianobar does not track whether you’re a subscriber or not and thus it’ll fail setting the new mode (there is no explanation from Pandora’s API when setting a mode fails, it simply does not change). I agree the error message could be more helpful though.

PromyLOPh avatar Jun 21 '21 10:06 PromyLOPh