-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
CompactMovie not found! #460
Comments
I have this bug as well, the following script reproduces it const { Innertube } = require("youtubei.js");
const f = async () => {
const it = await Innertube.create({
/* setup - see above */
});
const videoInfo = await it.getInfo("ADjB99cgrrM");
};
f(); Edit: the bug seems to be absent in version |
These warnings are mostly harmless. It's just the parser telling you something's new/changed. Either way, I guess we should add a way to disable them. |
Thanks, I got it now, the problem for me is that I am running this script as a child process, the child process must return/console.log For now I can probably find a workaround in my code. |
- Remove Parser class in favour of pure functions - Merge duplicate classes `AppendContinuationItemsAction` into a single class - Move continuation parsers into a seperate file - Add better custom logging support to parser methods as per issue #460
* deps: update linkedom * refactor!: remove YTNodeGenerator in favour of namespaced pure functions BREAKING CHANGES: - Removes `YTNodeGenerator` from `import('youtubei.js').Generator` and exposes its functions directly in `import('youtubei.js').Generator` * refactor!: replace Parser class with pure functions - Remove Parser class in favour of pure functions - Merge duplicate classes `AppendContinuationItemsAction` into a single class - Move continuation parsers into a seperate file - Add better custom logging support to parser methods as per issue #460 * refactor!: replace Proto class with pure functions * chore: update package-lock.json * refactor!: replace FormatUtils with pure functions and JSX components - Replace linkedom DASH manifest generation with a dependency free JSX implementation - Remove FormatUtils class in favour of pure functions - Remove DOMParser requirement - Remove duplicate types * refactor: implement changes from #462 * chore: lint * fix: deno support * fix: render valid xml document * fix: wrong function call in DashUtils * fix: typo in parser Co-authored-by: LuanRT <[email protected]> * refactor!: move streaming info logic into seperate function This allows users to access the same data available in the dash manifest while also simplifying the manifest generation * chore: lint * refactor: readability improvements & fixes Remove redundant getAudioTrackGroups General readability improvements in StreamingInfo.ts Share response object between `getBitrate` and `getMimeType` as to not make duplicate requests * build: remove unnecessary step in deno build Co-authored-by: absidue <[email protected]> * refactor: move types to `types` directory * docs: add back comments lost during refactor * chore: lint --------- Co-authored-by: LuanRT <[email protected]> Co-authored-by: absidue <[email protected]>
InnertubeError: CompactMovie not found!
This is a bug, want to help us fix it? Follow the instructions at https://github.com/LuanRT/YouTube.js/blob/main/docs/updating-the-parser.md or report it at https://github.com/LuanRT/YouTube.js/issues!
Introspected and JIT generated this class in the meantime:
at YTNodeGenerator._YTNodeGenerator_logNewClass (file:///.../node_modules/youtubei.js/dist/src/parser/generator.js:508:18) at YTNodeGenerator.createRuntimeClass (file:///.../node_modules/youtubei.js/dist/src/parser/generator.js:166:77) at YTNodeGenerator.generateRuntimeClass (file:///.../node_modules/youtubei.js/dist/src/parser/generator.js:231:30) at Parser.parseItem (file:///.../node_modules/youtubei.js/dist/src/parser/parser.js:225:106) at Parser.parseArray (file:///.../node_modules/youtubei.js/dist/src/parser/parser.js:249:37) at new TwoColumnWatchNextResults (file:///.../node_modules/youtubei.js/dist/src/parser/classes/TwoColumnWatchNextResults.js:15:41) at Parser.parseItem (file:///.../node_modules/youtubei.js/dist/src/parser/parser.js:234:32) at Parser.parse (file:///.../node_modules/youtubei.js/dist/src/parser/parser.js:278:43) at Parser.parseResponse (file:///.../node_modules/youtubei.js/dist/src/parser/parser.js:36:31) at new MediaInfo (file:///.../node_modules/youtubei.js/dist/src/core/mixins/MediaInfo.js:17:137) { date: 2023-07-31T17:33:31.623Z, version: '5.8.0' }
Checklist
The text was updated successfully, but these errors were encountered: