Skip to content

Commit

Permalink
Update Die Zeit.js (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuphilip authored and adam3smith committed Oct 22, 2016
1 parent bd46cb5 commit 0c943c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Die Zeit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2016-04-07 03:18:26"
"lastUpdated": "2016-09-12 05:37:03"
}

/*
Expand Down Expand Up @@ -61,7 +61,7 @@ function getSearchResults(doc, checkOnly) {
rows = doc.getElementsByClassName('teaser-small__container');
}
for (var i=0; i<rows.length; i++) {
var href = ZU.xpathText(rows[i], './/a/@href');
var href = ZU.xpathText(rows[i], '(.//a/@href)[1]');
var title = ZU.trimInternal( ZU.xpathText(rows[i], './/a/h4|.//a[span]') );
if (!href || !title) continue;
if (checkOnly) return true;
Expand Down Expand Up @@ -119,7 +119,7 @@ function scrape(doc, url){
}
}

var section = doc.getElementsByClassName("primary-nav__link--current");
var section = doc.getElementsByClassName("nav__ressorts-link--current");
if (section.length > 0) {
newItem.section = section[0].textContent;
}
Expand Down

0 comments on commit 0c943c4

Please sign in to comment.