Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
fix: ignore includingResultsForRenderer
Browse files Browse the repository at this point in the history
closes #132
  • Loading branch information
TimeForANinja committed Aug 4, 2021
1 parent a008e1b commit 0374f62
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/parseItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const parseItem = (item, resp) => {
return parseShowingResultsFor(item, resp);
case 'horizontalCardListRenderer':
return parseHorizontalCardListRenderer(item[type], resp);
case 'includingResultsForRenderer':
// Informational Item we can ignore
return null;

// Message-Types
case 'backgroundPromoRenderer':
Expand Down
40 changes: 40 additions & 0 deletions test/typeFiles/includingResultsForRenderer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"specialities": "None",
"throws": null,
"type": "includingResultsForRenderer",
"parsed": null,
"raw": {
"includingResultsForRenderer": {
"includingResultsFor": {
"runs": [
{
"text": "Including results for:"
}
]
},
"correctedQuery": {
"runs": [
{
"text": "SherlockLives",
"italics": true
}
]
},
"correctedQueryEndpoint": {
"clickTrackingParams": "CI4BEO8wGAAiEwjy5aamwb_xAhWHw0wCHWjaAW8=",
"commandMetadata": {
"webCommandMetadata": {
"url": "/results?search_query=SherlockLives&sp=EgIQAQ%253D%253D",
"webPageType": "WEB_PAGE_TYPE_SEARCH",
"rootVe": 4724
}
},
"searchEndpoint": {
"query": "SherlockLives",
"params": "EgIQAQ%3D%3D"
}
},
"trackingParams": "CI4BEO8wGAAiEwjy5aamwb_xAhWHw0wCHWjaAW8="
}
}
}

0 comments on commit 0374f62

Please sign in to comment.