From a10384423c7ccd7ca0f8edfc09ca9085c5becf44 Mon Sep 17 00:00:00 2001
From: sander <sander@sander-thuis>
Date: Mon, 10 Jun 2013 21:15:20 +0200
Subject: [PATCH] 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.

---
 src/main/java/org/vanbest/xmltv/Horizon.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
 		}
-- 
2.39.5