Raptor123471 / DingoLingo

A Discord music bot written in Python with support for Youtube, SoundCloud, Spotify, Bandcamp, Twitter, and custom files.
GNU General Public License v3.0
279 stars 166 forks source link

Running bot as .pyw prevents music from playing #120

Open dille12 opened 1 year ago

dille12 commented 1 year ago

I changed the run file to a no console .pyw, and all music related commands stopped working. I believe the issue is in FFMPEG conversion, which crashes if console is not present, since I found this: https://github.com/Zulko/moviepy/issues/517.

dille12 commented 1 year ago

Actually the downloader.extract_info() returns nothing when not using the console in this section: https://github.com/Raptor123471/DingoLingo/blob/eec116646616148f7f189d1c031b29aee6ff2a0f/musicbot/audiocontroller.py#L148-L162 It causes the thread to crash.

solaluset commented 1 year ago

Thanks for the detailed report on this issue. I've attempted to fix it in my fork, seems to work.