kgroeneveld / tv_grab_sd_json

XMLTV grabber for the Schedules Direct JSON API
8 stars 6 forks source link

Multiple channel numbers collapsed to one #8

Open fnxweb opened 8 years ago

fnxweb commented 8 years ago

Not a huge issue, but for Sky channels I was hoping to use the SD source to verify my channel number values (they move around a lot). Some aren't even set by SD, so tough for me, but some have multiple numbers (in the JSON; e.g. Sky One has both channels 106 and 217, and which you use depends upon whether you have SD or HD).

The script appears to only dump the last one it sees into the XML output, presumably expecting a single value not a possible list (sorry, I've not checked the source this time).

  {
     "stationID":"16235",
     "channel":"106"
  },
  {
     "stationID":"16235",
     "channel":"217"
  },

As I said, largely a nicety as I'd like at least both nos. there for me to compare against, but feel free to ignore this if it'll be a PITA to implement.