We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step 1. integrate this snippet within your code:
const youtube = await Innertube.create().catch(); // Search for videos const result = await search(bridge.transf(values.url)); // Get detailed information about the first video const videoInfo = await youtube.getInfo(result.videos[0].videoId); const format = videoInfo.chooseFormat({ type: 'audio', quality: 'best' }); const url = format?.decipher(youtube.session.player); const audio = createAudioResource(url); console.log(url)``` Step 2. Run it Step 3. northk nuke occurs in logs ### Failure Logs ```shell [YOUTUBEJS][Parser]: InnertubeError: VideoAttributesSectionView not found! This is a bug, want to help us fix it? [Part that tells me how to report it]! Introspected and JIT generated this class in the meantime: class VideoAttributesSectionView extends YTNode { static type = 'VideoAttributesSectionView'; header_title: string; header_subtitle: string; video_attribute_view_models: ObservedArray | null; previous_button: YTNodes.ButtonView | null; next_button: YTNodes.ButtonView | null; constructor(data: RawNode) { super(); this.header_title = data.headerTitle; this.header_subtitle = data.headerSubtitle; this.video_attribute_view_models = Parser.parse(data.videoAttributeViewModels, true, YTNodes.VideoAttributeView); this.previous_button = Parser.parseItem(data.previousButton, YTNodes.ButtonView); this.next_button = Parser.parseItem(data.nextButton, YTNodes.ButtonView); } } at ERROR_HANDLER (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13155:30) at createRuntimeClass (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:12321:3) at generateRuntimeClass (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:12364:19) at parseItem (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13470:75) at Object.parseArray (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13512:22) at new StructuredDescriptionContent (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:4035:33) at Object.parseItem (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13492:22) at new EngagementPanelSectionList (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:4057:35) at parseItem (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13492:22) at parseArray (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13512:22) { date: 2024-08-10T07:39:04.157Z, version: '10.3.0' } [YOUTUBEJS][Parser]: ParsingError: Type mismatch, got VideoAttributesSectionView expected VideoDescriptionHeader | ExpandableVideoDescriptionBody | VideoDescriptionMusicSection | VideoDescriptionInfocardsSection | VideoDescriptionCourseSection | VideoDescriptionTranscriptSection | VideoDescriptionTranscriptSection | HorizontalCardList | ReelShelf. at ERROR_HANDLER (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13144:30) at parseItem (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13474:13) at Object.parseArray (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13512:22) at new StructuredDescriptionContent (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:4035:33) at Object.parseItem (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13492:22) at new EngagementPanelSectionList (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:4057:35) at parseItem (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13492:22) at parseArray (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13512:22) at Object.parseResponse (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13435:29) at new MediaInfo (C:\Users\Rat\Documents\bmd\node_modules\youtubei.js\bundle\node.cjs:13930:100) { info: { headerTitle: 'People', headerSubtitle: '3 people', videoAttributeViewModels: [ [Object], [Object], [Object] ], previousButton: { buttonViewModel: [Object] }, nextButton: { buttonViewModel: [Object] } }, date: 2024-08-10T07:39:04.161Z, version: '10.3.0' }
not error output & work
error output & not wor
Default
The code used to work a few days ago.
The text was updated successfully, but these errors were encountered:
VideoAttributesSectionView
Successfully merging a pull request may close this issue.
Steps to reproduce
Step 1.
integrate this snippet within your code:
Expected behavior
not error output & work
Current behavior
error output & not wor
Version
Default
Anything else?
The code used to work a few days ago.
Checklist
The text was updated successfully, but these errors were encountered: