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

Bot does not like mobile Youtube links (m.youtube.com) #48

Closed
Darthwayne opened this issue Jul 1, 2023 · 1 comment
Closed

Bot does not like mobile Youtube links (m.youtube.com) #48

Darthwayne opened this issue Jul 1, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Darthwayne
Copy link

Describe your context:
Bot fails to play music when there is an 'm.' before the link, for example: /play https://m.youtube.com/watch?v=bIgVecA77Qo will cause the bot to fail. But if you remove the 'm.' (https://youtube.com/watch?v=bIgVecA77Qo) the bot will play the Youtube link just fine. I believe this is just a quality of life request, if a user inputs a m.youtube link, have the bot remove the 'm.' part?

The path to the bug:
After performing /play https://m.youtube.com/watch?v=bIgVecA77Qo, the console outputs error:

[ERROR IN PLAYHANDLER] -> Traceback (most recent call last):
  File "/home/container/Handlers/PlayHandler.py", line 33, in run
    musicsInfo = await self.__searcher.search(track)
  File "/home/container/Music/Searcher.py", line 21, in search
    raise InvalidInput(self.__messages.UNKNOWN_INPUT, self.__messages.UNKNOWN_INPUT_TITLE)
Config.Exceptions.InvalidInput
 {<class 'Config.Exceptions.InvalidInput'>}

Screenshots:
image
image
image

@Darthwayne Darthwayne added the bug Something isn't working label Jul 1, 2023
@RafaelSolVargas
Copy link
Owner

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants