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

Add another source for groups of filters #203

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const DEFAULT_CONTEXT = {
exports.parseFilters = json => {
const pc = json.contents.twoColumnSearchResultsRenderer.primaryContents;
const wrapper = pc.sectionListRenderer || pc.richGridRenderer;
const filterWrapper = (wrapper.subMenu || wrapper.submenu).searchSubMenuRenderer.groups;
const filterWrapper = (wrapper.subMenu || wrapper.submenu).searchSubMenuRenderer.groups ||
json.header.searchHeaderRenderer.searchFilterButton.buttonRenderer.command.openPopupAction.popup
.searchFilterOptionsDialogRenderer.groups || [];
const parsedGroups = new Map();
for (const filterGroup of filterWrapper) {
const singleFilterGroup = new Map();
Expand Down