commit 6218770a47f53c2a6a23f0ed28c452a2fa8ff67b
parent e61d608c8e2b9171a47ff954ecf119913e351352
Author: Natalie Pendragon <natpen@natpen.net>
Date: Sun, 24 May 2020 22:54:38 -0400
[crawl] Fix bug in fully_qualified_massaged_url
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gus/crawl.py b/gus/crawl.py
@@ -6,7 +6,7 @@ import pickle
import re
import shutil
import time
-from urllib.parse import unquote, urljoin, urlparse, urlunparse, uses_relative, uses_netloc
+from urllib.parse import urljoin, uses_relative, uses_netloc
import gusmobile as gemini
from whoosh.analysis import FancyAnalyzer
diff --git a/gus/lib/gemini.py b/gus/lib/gemini.py
@@ -134,7 +134,7 @@ class GeminiResource():
if self._fully_qualified_massaged_url is None:
fully_qualified_massaged_url = self.fully_qualified_url
if self.urlsplit.port == 1965:
- fully_qualified_massaged_url = url_normalized.replace(self.urlsplit.hostname.lower() + ":1965", self.urlsplit.hostname.lower(), 1)
+ fully_qualified_massaged_url = self.normalized_url.replace(self.urlsplit.hostname.lower() + ":1965", self.urlsplit.hostname.lower(), 1)
self._fully_qualified_massaged_url = fully_qualified_massaged_url
return self._fully_qualified_massaged_url