From 93e09a08a68ffd69eed42ecbf95f317b518357d7 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 20 Aug 2017 13:13:31 +0200 Subject: [PATCH] .cache -> gophermap --- src/be/nikiroo/gofetch/Fetcher.java | 8 ++++---- src/be/nikiroo/gofetch/output/Gopher.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/be/nikiroo/gofetch/Fetcher.java b/src/be/nikiroo/gofetch/Fetcher.java index 7490037..7866fe0 100644 --- a/src/be/nikiroo/gofetch/Fetcher.java +++ b/src/be/nikiroo/gofetch/Fetcher.java @@ -100,7 +100,7 @@ public class Fetcher { File gopherCache = new File(dir, preselector); gopherCache.mkdirs(); File htmlIndex = new File(gopherCache, "index.html"); - gopherCache = new File(gopherCache, ".cache"); + gopherCache = new File(gopherCache, "gophermap"); Output gopher = new Gopher(null, hostname, preselector, port); Output html = new Html(null, hostname, preselector, port); @@ -198,12 +198,12 @@ public class Fetcher { if (enoughStories || last) { if (!last) { gopherLines.add(getLink("More", support.getSelector() - + ".cache_" + (page + 1), false, false)); + + "gophermap_" + (page + 1), false, false)); htmlLines.add(getLink("More", "index_" + (page + 1) + ".html", false, true)); } - write(gopherLines, varDir, ".cache", "", page); + write(gopherLines, varDir, "gophermap", "", page); write(htmlLines, varDir, "index", ".html", page); gopherLines = new ArrayList(); htmlLines = new ArrayList(); @@ -230,7 +230,7 @@ public class Fetcher { private String getLink(String name, String ref, boolean index, boolean html) { if (!html) { return new StringBuilder().append("1" + name).append("\t") - .append((index ? "1" : "0") + ref) // + .append(ref) // .append("\t").append(hostname) // .append("\t").append(Integer.toString(port)) // .append("\r\n").toString(); diff --git a/src/be/nikiroo/gofetch/output/Gopher.java b/src/be/nikiroo/gofetch/output/Gopher.java index dd5e348..3fa6035 100644 --- a/src/be/nikiroo/gofetch/output/Gopher.java +++ b/src/be/nikiroo/gofetch/output/Gopher.java @@ -101,7 +101,7 @@ public class Gopher extends Output { appendJustified(builder, story.getFullContent(), " "); } else { builder.append('1').append(story.getTitle()) // - .append('\t').append("0").append(story.getSelector()) // + .append('\t').append(story.getSelector()) // .append('\t').append(hostname) // .append('\t').append(port) // .append("\r\n"); -- 2.27.0