]> www.vanbest.org Git - tv_grab_nl_java/commitdiff
Remove debug message from the RTL <desc> tag code. Closes #2
authorJan-Pascal van Best <janpascal@vanbest.org>
Wed, 25 Apr 2012 18:36:25 +0000 (20:36 +0200)
committerJan-Pascal van Best <janpascal@vanbest.org>
Wed, 25 Apr 2012 18:36:25 +0000 (20:36 +0200)
src/main/java/org/vanbest/xmltv/RTL.java

index a1e465bf2116347cd9347d98e62eab3b217ed2c9..e227be1eef4a37444d1d5ce2bd72f160e1f0c4f3 100644 (file)
@@ -233,25 +233,18 @@ public class RTL extends AbstractEPGSource implements EPGSource  {
                        }\r
                }\r
                StringBuilder description = new StringBuilder();\r
-               if (descStatus.alginhoud!=null) {\r
-                       description.append(descStatus.alginhoud);\r
-                       //System.out.print("A");\r
-               }\r
+               if (descStatus.alginhoud!=null) description.append(descStatus.alginhoud);\r
                if (descStatus.inhoud!=null) {\r
                        if (description.length()!=0) {\r
                                description.append("<p>");\r
-                               //System.out.print("n");\r
-                               //System.out.println("Date: "+prog.startTime + "; title: "+ prog.getFirstTitle());\r
                        }\r
                        description.append(descStatus.inhoud);\r
-                       //System.out.print("B");\r
                }\r
                if (description.length()==0 && descStatus.tt_inhoud!=null) {\r
+                       // only use tt_inhoud if the other two are both empty, since it is almost\r
+                       // always a summary of those fields and others such as <presenter>\r
                        description.append(descStatus.tt_inhoud);\r
-                       //System.out.print("C");\r
-                       //System.out.println("Date: "+prog.startTime + "; title: "+ prog.getFirstTitle());\r
                }\r
-               // ignore tt_inhoud since it is almost always a summary of the above and other fields\r
                prog.addDescription(description.toString());\r
        }\r
 \r