forked from tanner/qotnews
fix comment date.
This commit is contained in:
parent
1fe524207e
commit
f5e65632b8
|
@ -36,7 +36,9 @@ def _parse_comment(soup):
|
||||||
c['authorLink'] = _soup_get_text(soup.find('link'))
|
c['authorLink'] = _soup_get_text(soup.find('link'))
|
||||||
if soup.find('description'):
|
if soup.find('description'):
|
||||||
c['text'] = _soup_get_text(soup.find('description'))
|
c['text'] = _soup_get_text(soup.find('description'))
|
||||||
if soup.find('pubDate'):
|
if soup.find('pubdate'):
|
||||||
|
c['date'] = unix(soup.find('pubdate').text)
|
||||||
|
elif soup.find('pubDate'):
|
||||||
c['date'] = unix(soup.find('pubDate').text)
|
c['date'] = unix(soup.find('pubDate').text)
|
||||||
|
|
||||||
return c
|
return c
|
||||||
|
|
Loading…
Reference in New Issue
Block a user