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

Open
Darthwayne opened this issue Jul 1, 2023 · 4 comments
Open

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

Darthwayne opened this issue Jul 1, 2023 · 4 comments
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

@UVRadiation
Copy link

Same thing with videos with limited access (by link)

@RafaelSolVargas
Copy link
Owner

Can you give an example?

@UVRadiation
Copy link

Thanks for the quick reply! Didn't describe the problem very correctly. Not a song, but a playlist. Link to playlist
Screenshot 2024-10-28 at 03-51-09 image

[ERROR IN PLAYHANDLER] -> Traceback (most recent call last): File "/home/grisha/MusicBot/Handlers/PlayHandler.py", line 33, in run musicsInfo = await self.__searcher.search(track) File "/home/grisha/MusicBot/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'>}

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

3 participants