From 358d991f0376007cdf1803144dab1f30b0656bfb Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Sat, 31 May 2014 16:10:04 +0200 Subject: [PATCH] [twitter] fix http display in tweet display --- modules/twitter/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/twitter/pages.py b/modules/twitter/pages.py index ac6610d6..643f2f14 100644 --- a/modules/twitter/pages.py +++ b/modules/twitter/pages.py @@ -147,9 +147,9 @@ class TimelinePage(TwitterJsonHTMLPage): obj_id = Regexp(Link('./div/div/a[@class="details with-icn js-details"]|./div/div/span/a[@class="ProfileTweet-timestamp js-permalink js-nav js-tooltip"]'), '/(.+)/status/(.+)', '\\1#\\2') obj_title = Format('%s \n\t %s', CleanText('./div/div[@class="stream-item-header"]/a|./div/div[@class="ProfileTweet-authorDetails"]/a', - replace=[('@ ', '@'), ('# ', '#')]), + replace=[('@ ', '@'), ('# ', '#'), ('http:// ', 'http://')]), CleanText('./div/p', - replace=[('@ ', '@'), ('# ', '#')])) + replace=[('@ ', '@'), ('# ', '#'), ('http:// ', 'http://')])) obj_date = DatetimeFromTimestamp(Attr('./div/div[@class="stream-item-header"]/small/a/span|./div/div/span/a[@class="ProfileTweet-timestamp js-permalink js-nav js-tooltip"]/span', 'data-time'))