From 138ca60b401b1581fb3017359f310f8e773c1cb0 Mon Sep 17 00:00:00 2001 From: Sean Graham Date: Sat, 14 Feb 2009 01:08:28 +0800 Subject: [PATCH] changed the way i replace the lj-user tags; lj usernames allow underscores, domains do not. Rather that converting the underscores to hyphens, I used the alternate URL scheme supported by LJ disabled the lj-embed code until i can figure out how to make it actually work Signed-off-by: Greg Hewgill --- convertdump.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/convertdump.py b/convertdump.py index 9799cab..4eb143d 100755 --- a/convertdump.py +++ b/convertdump.py @@ -199,7 +199,7 @@ def replaceLJTags(entry): embedRE = re.compile('', re.IGNORECASE) # replace lj user tags - rv = re.sub(userRE, '\\1', rv) + rv = re.sub(userRE, '\\1', rv) # replace lj comm tags rv = re.sub(commRE, '\\1', rv) @@ -210,7 +210,10 @@ def replaceLJTags(entry): rv = re.sub(cutRE, '', rv) # replace lj-embed tags - rv = re.sub(embedRE, '', rv) + # this doesn't actually work. LJ doesn't include the embedded content + # when ljdump calls 'getevents', but instead includes an lj-embed tag + # with an id and nothing else. + #rv = re.sub(embedRE, '', rv) return rv -- 2.39.5