From a41c2a3a62e9c931ba625959ed1fc035cc54a336 Mon Sep 17 00:00:00 2001 From: pictuga Date: Fri, 20 Mar 2020 12:26:19 +0100 Subject: [PATCH] morss: fix twitter link detection --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 1d27b92..7d5c93c 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -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)