From 5e7ee3dffd2f5e0eba76b0578a87e7c2966585f2 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sat, 16 Nov 2013 20:30:48 +0100 Subject: [PATCH] use tag to extract the relative post url, fixes #37 The tag does not necessarily contains the full URL, but also relative URLs: http://example.com/foo/bar.html /foo/bar.html foo/bar.html --- isso/migrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/migrate.py b/isso/migrate.py index 47dbecb..99e6869 100644 --- a/isso/migrate.py +++ b/isso/migrate.py @@ -30,7 +30,7 @@ comments = set([]) def insert(db, thread, posts): - path = urlparse(thread.find('%sid' % ns).text).path + path = urlparse(thread.find('%slink' % ns).text).path remap = dict() if path not in db.threads: