DingoLingo icon indicating copy to clipboard operation
DingoLingo copied to clipboard

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

Open IntensityNetwork opened this issue 1 year ago • 3 comments

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

IntensityNetwork avatar Aug 19 '22 10:08 IntensityNetwork

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

RafaelSolVargas avatar Aug 19 '22 12:08 RafaelSolVargas

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

RafaelSolVargas avatar Aug 19 '22 14:08 RafaelSolVargas

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

solaluset avatar Aug 21 '22 12:08 solaluset