diff --git a/Music-Bot.py b/Music-Bot.py index 661ea60..fd5c5ec 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -228,9 +228,9 @@ else: async with client.get("https://www.youtube.com/results", params=p, headers=h) as resp: dom = await resp.text() open("debug.html", "w").write(dom) - print(re.findall(r"watch\?v=(\S{11})", dom)) found = re.findall(r"watch\?v=(\S{11})", dom)[0] url = f"https://www.youtube.com/watch?v={found}" + print(url) async with ctx.typing(): await ctx.respond("🤖 Your song is queued for download... please wait ", ephemeral=True)