morss: fix twitter link detection
parent
dd2651061f
commit
a41c2a3a62
|
@ -204,7 +204,7 @@ def ItemFill(item, options, feedurl='/', fast=False):
|
||||||
|
|
||||||
# twitter
|
# twitter
|
||||||
if urlparse(feedurl).netloc == 'twitter.com':
|
if urlparse(feedurl).netloc == 'twitter.com':
|
||||||
match = lxml.html.fromstring(item.content).xpath('//a/@data-expanded-url')
|
match = lxml.html.fromstring(item.desc).xpath('//a/@data-expanded-url')
|
||||||
if len(match):
|
if len(match):
|
||||||
link = match[0]
|
link = match[0]
|
||||||
log(link)
|
log(link)
|
||||||
|
|
Loading…
Reference in New Issue