Steps to reproduce
Run examples/downloader/main.ts
Failure Logs
Title: Lonely Afternoon
Duration: 229
Views: 290001
Author: Windows 96 - Topic
Video ID: xjHO_02jZco
Download failed: PlayerError: No valid URL to decipher
at Player.decipher (/home/cyph/ktv/oss/googlevideo/examples/downloader/node_modules/youtubei.js/src/core/Player.ts:133:13)
at createSabrStream (/home/cyph/ktv/oss/googlevideo/examples/downloader/utils/sabr-stream-factory.ts:185:65)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async main (/home/cyph/ktv/oss/googlevideo/examples/downloader/main.ts:27:31)
Expected behavior
Video to download
Current behavior
Download failed: PlayerError: No valid URL to decipher
Version
Default
Anything else?
Seems that playerResponse.streaming_data is not returned from Youtube now
Checklist
Steps to reproduce
Run examples/downloader/main.ts
Failure Logs
Title: Lonely Afternoon Duration: 229 Views: 290001 Author: Windows 96 - Topic Video ID: xjHO_02jZco Download failed: PlayerError: No valid URL to decipher at Player.decipher (/home/cyph/ktv/oss/googlevideo/examples/downloader/node_modules/youtubei.js/src/core/Player.ts:133:13) at createSabrStream (/home/cyph/ktv/oss/googlevideo/examples/downloader/utils/sabr-stream-factory.ts:185:65) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async main (/home/cyph/ktv/oss/googlevideo/examples/downloader/main.ts:27:31)Expected behavior
Video to download
Current behavior
Download failed: PlayerError: No valid URL to decipher
Version
Default
Anything else?
Seems that playerResponse.streaming_data is not returned from Youtube now
Checklist
Actually, the above fails due to a small change YouTube made to how Onesie requests work.
This project is a bit outdated when it comes to PO tokens, and some deps in the examples need to be bumped (like YouTube.js). It should work if you update the deps (minus Shaka if you're trying the player demos) and switch to an InnerTube client that doesn't need PO tokens.
Either way, I'll be fixing these issues soon.
Edit:
Same applies to the Kira project, for those wondering why it seems broken.