Bugzilla – Bug 13573
CLI Pandora Create a station issue
Last modified: 2011-01-14 13:17:28 UTC
Been having a weird issue with creating a new radio station in Pandora. The first example works just fine. Brings the list of possible stations that have a "dm" like DMX. <Sending> 00:04:20:06:79:41 pandora items 0 8 item_id:1_dm{0A} <Receiving> 00%3A04%3A20%3A06%3A79%3A41 pandora items 0 8 item_id%3A1_dm title%3ASearch%20Results%20-%20dm id%3A1_dm.0 name%3ADMX type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_dm.1 name%3ADmitry%20Shostakovich type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_dm.2 name%3ADmitri%20Shostackovich type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_dm.3 name%3ADmx%20%26%20Sean%20Paul%20%26%20Vegas type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_dm.4 name%3ADMC type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_dm.5 name%3APhilharmony%20%22Dmitri%20Shostakovich%22 type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_dm.6 name%3ADMBQ type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_dm.7 name%3ADMX%20Krew type%3Alink isaudio%3A0 hasitems%3A1 count%3A50{0A} This example doesnt seem to work correctly. It could be that i am querying this incorrectly, but i have been doing this for a few versions and it has worked. After the search "rollin" (Possibly looking for Rolling Stones) seems to just return the main menu. Having the user select one of these options (hasitems == 1 so the user is allow to drill down through my program) can basically crash the SqueezeCenter software. <Sending> 00:04:20:06:79:41 pandora items 0 8 item_id:1_rollin{0A} <Receiving> 00%3A04%3A20%3A06%3A79%3A41 pandora items 0 8 item_id%3A1_rollin title%3APandora id%3A1_rollin.0 name%3AYour%20Stations type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rollin.1 name%3ACreate%20a%20New%20Station type%3Asearch isaudio%3A0 hasitems%3A1 id%3A1_rollin.2 name%3AGenre%20Stations type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rollin.3 name%3AAccount%20Settings isaudio%3A0 hasitems%3A1 count%3A4{0A} It seems that this happens with more than 5 characters of the search string. "rolli" works but "rollin" does not. Once again if what i am doing is incorrect please let me know and this can be disregarded. Thanks.
Is this Pandora only or any of the online sevices? Can't access Pandora from Switzerland right now... Also: do you see the same with 7.4
this is an administrative shuffle on priority fields to help make better judgment on the top end of the priority list. P4->P5, P3->P4, and P2->P3.
QA to reproduce. Can't access Pandora.
(In reply to comment #1) > Is this Pandora only or any of the online sevices? Can't access Pandora from > Switzerland right now... Also: do you see the same with 7.4 This is only with Pandora that i see. I tried loading and getting 7.4 working but i was unable to get the subscription validation to work.
Michael does his command look correct for creating a station? 00:04:20:06:79:41 pandora items 0 8 item_id:1_dm{0A} I don't even understand exactly what the expected behavior is, Tom can you clarify? That command should prompt on the player UI to create a station and show some suggestions for the new station? Is there somewhere other than our CLI documentation I should be looking for the various item_id's? Sorry for being daft, trying to reproduce and I'm a little lost.
(In reply to comment #5) > Michael does his command look correct for creating a station? > 00:04:20:06:79:41 pandora items 0 8 item_id:1_dm{0A} Basically what this is doing is trying to create a station. In that case "dm" is searched and if it doesn't have an exact match then the server returns a list of possibilities. If it matches an artist or some unique exactly then it adds the station and the server returns Your New Station and the title of the station. If you search "dmx" it returns the station of DMX radio and starts it playing i believe. So if you used "rolli" to try and find something like "The Rolling Stones": 00:04:20:06:79:41 pandora items 0 8 item_id:1_rolli$0a You would get a list of artists/songs that match that term. If you try: (The term being 6 or more characters) 00:04:20:06:79:41 pandora items 0 8 item_id:1_rolling$0a It returns the top directory of Pandora and usually crashes out my SqueezeCenter but doesn't return the correct information. I don't remember where i got some of my commands that i have been using as i did this a while ago. Maybe just some experimenting with the original commands?
I think you must be doing something wrong, as both SqueezePlay and iPeng use this same interface without problems. Just to make sure, you aren't hardcoding any values when browsing these menus right?
(In reply to comment #7) Im not hard coding the values for the browsing but maybe i am doing it incorrectly. I don't remember seeing what i am doing now failing before but i am definitely open to changing the command for one that works. I must have missed another way to make this query (or all searches for that matter).
I have been trying to figure this out for a while and i know that i must be using the search the wrong way or something. If i do a search (by adding an "_" then the searchquery to the item_id so in this case "1_rolling" is the item id) with a string that has more than 5 characters only in this case of Creating a new Station in Pandora returns the top directory of Pandora. I had trouble finding documentation on how the searching works and i cant find where i found to do it this way. I don't have anything hard-coded except the way that it does the searches ( _searchstring ). I do the searches this way and have full control of Rhapsody and other apps. Just this one case doesn't seem to work. If there is a different way to do the searches that would be great. Maybe this way isn't something that was openly supported and depreciated? I'm running the latest SqueezeServer on an XP machine, 2 Squeezebox Classics and 1 Receiver are connected to the server. (Trying to make a station with The Rolling Stones. Search string has 7 characters.)(Data was all sent from a program called Hercules just a simple TCP client program, similar to a HyperTerminal just more friendly) 00:04:20:06:79:41 pandora items 0 8 item_id:1_rolling{0A} 00%3A04%3A20%3A06%3A79%3A41 pandora items 0 8 item_id%3A1_rolling title%3APandora id%3A1_rolling.0 name%3AYour%20Stations type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolling.1 name%3ACreate%20a%20New%20Station type%3Asearch isaudio%3A0 hasitems%3A1 id%3A1_rolling.2 name%3AGenre%20Stations type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolling.3 name%3AAccount%3A%20mike%40rocketgui.com type%3Alink isaudio%3A0 hasitems%3A1 count%3A4{0A} (Using only 5 characters) {0A}00:04:20:06:79:41 pandora items 0 8 item_id:1_rolli{0A} 00%3A04%3A20%3A06%3A79%3A41 pandora items 0 8 item_id%3A1_rolli title%3ACreate%20a%20New%20Station id%3A1_rolli.0 name%3AThe%20Rolling%20Stones type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolli.1 name%3ASonny%20Rollins type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolli.2 name%3AHenry%20Rollins type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolli.3 name%3ARollins%20Band type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolli.4 name%3AKarl%20Leopold%20R%C3%B6llig type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolli.5 name%3ARolling%20On type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolli.6 name%3ASir%20John%20Barbirolli type%3Alink isaudio%3A0 hasitems%3A1 id%3A1_rolli.7 name%3AThe%20Rollers type%3Alink isaudio%3A0 hasitems%3A1 count%3A66{0A}
When you see a type=search item, you need to provide the search query as a 'search' param. Try something like this: item_id:1 search:rolling
7.4.x milestone is in the past