morss: fix twitter link detection

master
pictuga 2020-03-20 12:26:19 +01:00
parent dd2651061f
commit a41c2a3a62
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ def ItemFill(item, options, feedurl='/', fast=False):
# twitter
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):
link = match[0]
log(link)