Reddit: check feed url instead of link url
parent
b927a4d089
commit
1d10d30173
2
morss.py
2
morss.py
|
@ -359,7 +359,7 @@ def Fix(item, feedurl='/'):
|
|||
log(item.link)
|
||||
|
||||
# reddit
|
||||
if urlparse.urlparse(item.link).netloc == 'www.reddit.com':
|
||||
if urlparse.urlparse(feedurl).netloc == 'www.reddit.com':
|
||||
match = lxml.html.fromstring(item.desc).xpath('//a[text()="[link]"]/@href')
|
||||
if len(match):
|
||||
item.link = match[0]
|
||||
|
|
Loading…
Reference in New Issue