Changelog for tv_grab_nl_java
=============================
+tv_grab_nl_java-1.3.1 (2013-06-11)
+- When reconfiguring, keep channels from source if either channel id
+ or channel name is identical
+
tv_grab_nl_java-1.3.0 (2013-06-11)
- Change --description output to show just a single line, fixes #11
- Added fetch-channel-logos option in configuration file, fixes #12
// public String cacheDbPassword;
Set<String> oldChannels = new HashSet<String>();
+ Set<String> oldChannelNames = new HashSet<String>();
Set<Integer> oldGuides = new HashSet<Integer>();
for (Channel c : config.channels) {
if (c.enabled) {
oldChannels.add(c.source + "::" + c.id);
+ oldChannelNames.add(c.source + "::" + c.defaultName());
oldGuides.add(c.source);
}
}
boolean none = false;
boolean keep = false;
for (Channel c : channels) {
- boolean selected = oldChannels.contains(c.source + "::" + c.id);
+ boolean selected = oldChannels.contains(c.source + "::" + c.id) ||
+ oldChannelNames.contains(c.source + "::" + c.defaultName());
System.out.print("add channel " + c.getXmltvChannelId() + " ("
+ c.defaultName()
+ ") [[y]es,[n]o,[a]ll,[none],[k]eep selection (default="