From 11504aa140af54c54b552b23dca84080fac1dea8 Mon Sep 17 00:00:00 2001 From: Leorio Paradinight <62891774+code-rgb@users.noreply.github.com> Date: Mon, 29 Mar 2021 11:45:01 +0530 Subject: [PATCH] Update songlink.py --- userge/plugins/utils/songlink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userge/plugins/utils/songlink.py b/userge/plugins/utils/songlink.py index b4e248a18..ffbc06b77 100644 --- a/userge/plugins/utils/songlink.py +++ b/userge/plugins/utils/songlink.py @@ -26,7 +26,7 @@ ) async def getlink_(message: Message): """song links""" - if not (link := await find_url_from_msg(message)): + if not (link := (await find_url_from_msg(message))[0]): return await message.edit(f'🔎 Searching for `"{link}"`') resp = await get_song_link(link) @@ -73,7 +73,7 @@ async def find_url_from_msg(message: Message, show_err: bool = True) -> Optional return y = url_e[0] link = txt[y.offset : (y.offset + y.length)] if y.type == "url" else y.url - return link + return link, msg.link def beautify(text: str) -> str: