This commit is contained in:
2024-11-10 19:48:47 +01:00
parent c225a3e252
commit 3d02d06862
3 changed files with 17 additions and 8 deletions
+1
View File
@@ -612,6 +612,7 @@ class MusicModule(commands.Cog):
self.logger.info(text)
lines = text.split("\n")
for link in lines:
self.logger.info(link)
pat = r"^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$"
if re.match(pat, link) and (re.match(".*youtube.*", link) or re.match(".*youtu.be.*", link)):
self.logger.info("%s to link do jutuba", link)