about summary refs log tree commit diff
path: root/zachwalk.py
diff options
context:
space:
mode:
Diffstat (limited to 'zachwalk.py')
-rwxr-xr-xzachwalk.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/zachwalk.py b/zachwalk.py
index 9df813c..0e5feb6 100755
--- a/zachwalk.py
+++ b/zachwalk.py
@@ -55,8 +55,7 @@ def replaceDateIfNewer(desc, newestdate):
 def main():
     for line in fileinput.input(): #stdin or file from argv
         if line[0:2] == '=>':
-          # plz don't use multiple spaces.
-          url = line.split(' ')[1]
+          url = line[2:].strip().split(' ')[0]
           if isAbsGeminiUrl(url):
             desc = getdesc(line)
             olddate = gnd(url)