Gopher: (WIP): menu -> text for news
[gofetch.git] / src / be / nikiroo / gofetch / Fetcher.java
index 7866fe0030acc87c73dc2775ff2fb432bf50a11a..920b48af504db25f0f61e946c48ce27d931bea99 100644 (file)
@@ -227,10 +227,19 @@ public class Fetcher {
                }
        }
 
+       /**
+        * 
+        * @param name
+        * @param ref
+        * @param index
+        *            this link is in an index (and link to a NON index)
+        * @param html
+        * @return
+        */
        private String getLink(String name, String ref, boolean index, boolean html) {
                if (!html) {
-                       return new StringBuilder().append("1" + name).append("\t")
-                                       .append(ref) //
+                       return new StringBuilder().append((index ? "0" : "1") + name)
+                                       .append("\t").append(ref) //
                                        .append("\t").append(hostname) //
                                        .append("\t").append(Integer.toString(port)) //
                                        .append("\r\n").toString();