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

Songs with colons (:) in their names causes the Bot to stop working. #112

Open IntensityNetwork opened 2 years ago

IntensityNetwork commented 2 years ago

Any song with a colon in the title causes the bot to error and crash

https://open.spotify.com/track/2tTmW7RDtMQtBk7m2rYeSw?si=618ed11bac584640 for example

RafaelSolVargas commented 2 years ago

I tried this link and the player started playing successfully. Can you show us a print screen with the error you are getting?

RafaelSolVargas commented 2 years ago

Sorry for the last comment, I tried with the wrong code. I got your error, you did a nicejob identifying the colon pattern, this makes the solution very trivial. I could make a PR but the owner of this repository doesn't work with this bot anymore, so just change this in your code: In the file audiocontroller.py add this line of code in search_youtube function:

image

The problem might be in the way this function calls the ydl.extract_info method, but it's easier to fix this particular error. If you are looking for a more stable discord music bot you can try this one: Vulkan

solaluset commented 2 years ago

Just an alternative: my fork also has this issue fixed.