From: sander Date: Mon, 10 Jun 2013 19:15:20 +0000 (+0200) Subject: Updated the Horizon fetcher to treat the station id as a long value because Horizion... X-Git-Tag: 1.2.1~2^2^2 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=a10384423c7ccd7ca0f8edfc09ca9085c5becf44;p=tv_grab_nl_java Updated the Horizon fetcher to treat the station id as a long value because Horizion's channel id's are now above Integer.MAX_VALUE. --- diff --git a/src/main/java/org/vanbest/xmltv/Horizon.java b/src/main/java/org/vanbest/xmltv/Horizon.java index 9a33068..31f49ef 100644 --- a/src/main/java/org/vanbest/xmltv/Horizon.java +++ b/src/main/java/org/vanbest/xmltv/Horizon.java @@ -120,7 +120,7 @@ public class Horizon extends AbstractEPGSource implements EPGSource { 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"); @@ -134,7 +134,7 @@ public class Horizon extends AbstractEPGSource implements EPGSource { 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); }