Skip to content

Commit

Permalink
Add more datetime pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
chunvv committed Apr 9, 2021
1 parent 035c860 commit 4de1ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goscraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (scraper *Scraper) parseDocument(doc *Document) error {
}
}
switch cleanStr(property) {
case "og:article:published_time", "article:published_time":
case "og:article:published_time", "article:published_time", "iso-8601-publish-date":
doc.Preview.PublishedTime = content
case "og:site_name":
doc.Preview.Name = content
Expand Down

0 comments on commit 4de1ee4

Please sign in to comment.