Reddit: check feed url instead of link url

master
pictuga 2013-11-30 19:36:44 +01:00
parent b927a4d089
commit 1d10d30173
1 changed files with 1 additions and 1 deletions

View File

@ -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]