JSONObject firstSchedule = stationSchedules.getJSONObject(0);
JSONObject station = firstSchedule.getJSONObject("station");
logger.debug("firstschedule: " + firstSchedule.toString());
- int id = station.getInt("id");
+ long id = station.getLong("id");
String name = station.getString("title");
// Use the largest available station logo as icon
JSONArray images = station.getJSONArray("images");
maxSize = image.getInt("width");
}
}
- Channel c = Channel.getChannel(getId(), Integer.toString(id), name,
+ Channel c = Channel.getChannel(getId(), Long.toString(id), name,
icon);
result.add(c);
}