Vulkan
Vulkan copied to clipboard
Bot does not like mobile Youtube links (m.youtube.com)
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: