ashton045/youtube-source ? reverse-engineered prompt

Reverse engineered prompt

Build me a YouTube source manager for Lavaplayer that can be used both as a standalone library and as a Lavalink plugin.

I want it to try multiple YouTube InnerTube clients in order, so if one request fails it can fall back to another and keep loading tracks reliably. It should support normal video loading, playlists, searching, and direct video or playlist IDs when allowed. For newer Lavaplayer setups, include richer track info like thumbnails too.

Please make the plugin version easy to configure in Lavalink, with settings for enabling it, allowing search, choosing which clients to use, and turning on or off direct IDs. It should also support the usual YouTube edge cases like age restricted content, OAuth tokens, poToken, and optional remote cipher handling if needed.

Keep it compatible with the existing Lavaplayer and Lavalink style, and if you need current API details, look up the latest docs online before wiring things up.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab