Szymkim2134
### What component of Red (cog, command, API) would you like to see improvements on? Audio ### Describe the enhancement you're suggesting. Being annoyed by always Broken managed Lavalink [which requires to really tweak around with stuff to just make it work], i've thought up of a Fallback Solution - Why not just use the Functionality of Playing Local Files through the Bot, by automating the Downloading process from Youtube Music? So, i've managed to vibe-code [using Deepseek, but i do know Python but not so much as to program it myself] it, You can see the result in the attached Python file. It works like this: User sends the command [p]localplay <youtube_link> -> Bot gets it, Downloads info about it -> Bot checks if it already exists in that one local folder ["youtubelocal" folder in the localpath set in Audioset] -> If not, downloads it through yt-dlp [probably also using ffmpeg to convert it to mp3]-> And then executes the command [p]play <localpath tracks folder>/youtubelocal/<video name on youtube>.mp3 -> Which plays the youtube link, as a locally hosted file. The End users sadly do not care about "Piracy-Risk" or "Avoiding Ads" and stuff, they just find it convenient when stuff works and doesn't break. Sadly - This required for me to install into the RedEnv: yt-dlp, PyNaCl, davey, and probably also ffmpeg. Implementing something similar without these is probably way above my league [and way harder/impossible because of legal reasons?], but with these it was somewhat easy [for local usage]. If you want to use anything from this - Be my guest. But PLEASE Review this code, and DO NOT include it as-is, because it's an AI-Slop which just works. It would need refinement before anything else. [Info.json file is in polish because i'm lazy to change it lol] [info.json](https://github.com/user-attachments/files/31333971/info.json) [localplay.py](https://github.com/user-attachments/files/31333970/localplay.py) ### Anything else? Again - This is just a Proof of Concept Idea, which would be REALLY convenient when things break with Lavalink. I don't think if this same thing could be applied to other platforms like Spotify and stuff, buut at least this would really make things easier when using the Audio Cog in this Discord Bot.