Skip to content
New issue

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

v10.3.0 - VideoAttributesSectionView not found #726

Closed
4 tasks done
RatWasHere opened this issue Aug 10, 2024 · 0 comments · Fixed by #732
Closed
4 tasks done

v10.3.0 - VideoAttributesSectionView not found #726

RatWasHere opened this issue Aug 10, 2024 · 0 comments · Fixed by #732
Labels
bug Something isn't working

Comments

@RatWasHere
Copy link

Steps to reproduce

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' }

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

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant