midgetspy/Sick-Beard — pull request #712 by seanstar12 (2013-07-28 05:30:15+00:00)
Title: CMD_Shows should return both TVDBID and SHOW_NAME regardless of sort order

If making a search using id i.e. '/api/1234/?cmd=shows&sort=id', the return object yields:

{"data":{ "71489": { "air_by_date": 0...

which makes parsing the data much more difficult than just including the variables in the return object. With the changes provided, it would allow the return object usable without having to parse through and pull out the 'id' or 'show_name' from a loop.

When making an API call, CMD_Shows returns an object of objects thus making grabbing required information difficult to obtain. These modifications would make of the information available.