Skip to content

Commit

Permalink
Merge pull request #111 from Lukas0907/dev/next
Browse files Browse the repository at this point in the history
addendum.org: Fall back to published time of no modified time available.
  • Loading branch information
nblock committed Jan 16, 2018
2 parents 98aeffb + 34f0579 commit 4fe554c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion feeds/spiders/addendum_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def _parse_article(self, response):
il.add_value('author_name', 'Addendum')
il.add_css('title', 'meta[property="og:title"]::attr(content)')
il.add_css('updated',
'meta[property="og:updated_time"]::attr(content)')
'meta[property="article:modified_time"]::attr(content)')
# If not yet modified:
il.add_css('updated',
'meta[property="article:published_time"]::attr(content)')
il.add_css('content_html', '.content')
yield il.load_item()

0 comments on commit 4fe554c

Please sign in to comment.