Skip to content

Commit

Permalink
close #24; ancestry profiles missing birth and death info
Browse files Browse the repository at this point in the history
  • Loading branch information
justincy committed Jun 10, 2016
1 parent a335886 commit 055df29
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/scrapers/ancestry-person.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ function process(emitter, $dom){

$dom.find('#factsSection .LifeEvent').each(function(){
var $card = $(this),
name = $card.find('.cardSubtitle').text().toLowerCase().trim(),
name = $card.find('.cardSubtitle')
// Remove the embedded and hidden fact age
.children('.factAge').remove()
.end()
.text().toLowerCase().trim(),
value = $card.find('.cardTitle');
facts[name] = value;
});
Expand Down
2 changes: 1 addition & 1 deletion test/responses/ancestry/person/70025770-30206952907.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/responses/ancestry/person/70025770-30206952926.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/responses/ancestry/person/70025770-30206952953.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/responses/ancestry/person/70025770-30206952959.json

Large diffs are not rendered by default.

0 comments on commit 055df29

Please sign in to comment.