From: Jan-Pascal van Best Date: Wed, 25 Apr 2012 18:36:25 +0000 (+0200) Subject: Remove debug message from the RTL tag code. Closes #2 X-Git-Tag: 0.9.3~1 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=d4ee60bb6d6803948a2919feb1ba5cc65ceaf1b0;p=tv_grab_nl_java Remove debug message from the RTL tag code. Closes #2 --- diff --git a/src/main/java/org/vanbest/xmltv/RTL.java b/src/main/java/org/vanbest/xmltv/RTL.java index a1e465b..e227be1 100644 --- a/src/main/java/org/vanbest/xmltv/RTL.java +++ b/src/main/java/org/vanbest/xmltv/RTL.java @@ -233,25 +233,18 @@ public class RTL extends AbstractEPGSource implements EPGSource { } } StringBuilder description = new StringBuilder(); - if (descStatus.alginhoud!=null) { - description.append(descStatus.alginhoud); - //System.out.print("A"); - } + if (descStatus.alginhoud!=null) description.append(descStatus.alginhoud); if (descStatus.inhoud!=null) { if (description.length()!=0) { description.append("

"); - //System.out.print("n"); - //System.out.println("Date: "+prog.startTime + "; title: "+ prog.getFirstTitle()); } description.append(descStatus.inhoud); - //System.out.print("B"); } if (description.length()==0 && descStatus.tt_inhoud!=null) { + // only use tt_inhoud if the other two are both empty, since it is almost + // always a summary of those fields and others such as description.append(descStatus.tt_inhoud); - //System.out.print("C"); - //System.out.println("Date: "+prog.startTime + "; title: "+ prog.getFirstTitle()); } - // ignore tt_inhoud since it is almost always a summary of the above and other fields prog.addDescription(description.toString()); }