Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IntensityNetwork opened this issue Aug 19, 2022 · 3 comments

Comments

@IntensityNetwork
Copy link

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
Copy link
Contributor

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

@RafaelSolVargas
Copy link
Contributor

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants