]> www.vanbest.org Git - tv_grab_nl_java/commitdiff
Updated the Horizon fetcher to treat the station id as a long value because Horizion...
authorsander <sander@sander-thuis>
Mon, 10 Jun 2013 19:15:20 +0000 (21:15 +0200)
committersander <sander@sander-thuis>
Mon, 10 Jun 2013 19:15:20 +0000 (21:15 +0200)
src/main/java/org/vanbest/xmltv/Horizon.java

index 9a3306850a37323ab57cb46b33d3b4aadd03ad63..31f49ef91b4e2ae1cd741ecf44f8e23316416218 100644 (file)
@@ -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);
                }