]> Sergey Matveev's repositories - linksexp.git/blobdiff - main.go
Raise copyright years
[linksexp.git] / main.go
diff --git a/main.go b/main.go
index ffa32468ca023ed5a5dd8959ae49ce8a72506690..f9f7034f5fccca46aeeb259d4a6b508e7cc03bd1 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,6 +1,6 @@
 /*
 linksexp -- Texinfo/XBEL/OPML/urls autogeneration from recfile bookmark
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -60,6 +60,9 @@ func main() {
                        sort.Strings(m["Category"])
                        cats := strings.Join(m["Category"], " ")
                        for _, f := range m["Feed"] {
+                               if strings.HasPrefix(f, "gemini://") {
+                                       f = "https://gemini/" + f
+                               }
                                fmt.Println(f, cats)
                        }
                }