-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ItemSection): FeedFilterChipBar parse error (#741)
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bf6cc00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dnicolson STill getting this same error after update
[YOUTUBEJS][Parser]: ShortsLockupView changed!
The following keys where altered: inline_player_data, menu_on_tap, menu_on_tap_a11y_label, badge
The class has changed to:
class ShortsLockupView extends YTNode {
static type = 'ShortsLockupView';
entity_id: string;
accessibility_text: string;
thumbnail: {
sources: {
url: string,
width: number,
height: number
}[]
};
on_tap: {
innertube_command: NavigationEndpoint
};
index_in_collection: number;
logging_directives: {
tracking_params: string,
visibility: {
types: string
},
enable_displaylogger_experiment: boolean
};
overlay_metadata: {
secondary_text: {
content: string
},
primary_text?: {
content: string
}
};
inline_player_data?: {
on_visible: {
innertube_command: NavigationEndpoint
}
};
menu_on_tap?: {
innertube_command: NavigationEndpoint
};
menu_on_tap_a11y_label?: string;
badge?: YTNodes.BadgeView | null;
constructor(data: RawNode) {
super();
this.entity_id = data.entityId;
this.accessibility_text = data.accessibilityText;
this.thumbnail = {
sources: data.thumbnail.sources.map((item: any) => ({
url: item.url,
width: item.width,
height: item.height
}))
};
this.on_tap = {
innertube_command: new NavigationEndpoint(data.onTap.innertubeCommand)
};
this.index_in_collection = data.indexInCollection;
this.logging_directives = {
tracking_params: data.loggingDirectives.trackingParams,
visibility: {
types: data.loggingDirectives.visibility.types
},
enable_displaylogger_experiment: data.loggingDirectives.enableDisplayloggerExperiment
};
this.overlay_metadata = {
secondary_text: {
content: data.overlayMetadata.secondaryText.content
},
primary_text: Reflect.has(data.overlayMetadata, 'primaryText') ? {
content: data.overlayMetadata.primaryText.content
} : undefined
};
this.inline_player_data = Reflect.has(data, 'inlinePlayerData') ? {
on_visible: {
innertube_command: new NavigationEndpoint(data.inlinePlayerData.onVisible.innertubeCommand)
}
} : undefined;
this.menu_on_tap = Reflect.has(data, 'menuOnTap') ? {
innertube_command: new NavigationEndpoint(data.menuOnTap.innertubeCommand)
} : undefined;
this.menu_on_tap_a11y_label = Reflect.has(data, 'menuOnTapA11yLabel') ? data.menuOnTapA11yLabel : undefined;
this.badge = Reflect.has(data, 'badge') ? Parser.parseItem(data.badge, YTNodes.BadgeView) : undefined;
}
}
bf6cc00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hextor1 we told you what you need to do. Please read what we have told you and stop spamming all over the repo.