From cda71c374b60fb16ea2aff9127dd8a2bc2e67c90 Mon Sep 17 00:00:00 2001 From: Guy Godfroy Date: Thu, 3 Dec 2020 18:36:35 +0100 Subject: [PATCH] change to adapt to link_func --- geminer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/geminer.py b/geminer.py index d0958bc..ea1d73c 100755 --- a/geminer.py +++ b/geminer.py @@ -18,8 +18,9 @@ tpl_path = os.path.expanduser(config.tpl_dir) os.chdir(md_path) def add_ext_gmi(link): - # Custom function to apply to local links - return link+".gmi" + # Custom function to apply to links + if "://" not in link: # apply only on local links + return link+".gmi" # Walk through markdown directories for dirname, subdirlist, mdlist in os.walk('.'):