fix comment date.

This commit is contained in:
Jason Schwarzenberger 2020-11-19 14:27:24 +13:00
parent 1fe524207e
commit f5e65632b8

View File

@ -36,7 +36,9 @@ def _parse_comment(soup):
c['authorLink'] = _soup_get_text(soup.find('link'))
if 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)
return c