Commit 20dab8b7 authored by Joshua's avatar Joshua
Browse files

Merge branch 'master' of git@github.com:joshthecoder/tweepy

parents b4e6b029 8226668b
......@@ -125,8 +125,11 @@ def parse_status(obj, api):
elif k == 'created_at':
setattr(status, k, _parse_datetime(v))
elif k == 'source':
setattr(status, k, _parse_html_value(v))
setattr(status, 'source_url', _parse_a_href(v))
if '<' in v:
setattr(status, k, _parse_html_value(v))
setattr(status, 'source_url', _parse_a_href(v))
else:
setattr(status, k, v)
elif k == 'retweeted_status':
setattr(status, k, parse_status(v, api))
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment