Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Update songlink.py
Browse files Browse the repository at this point in the history
  • Loading branch information
code-rgb authored Mar 29, 2021
1 parent 1003c18 commit 11504aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userge/plugins/utils/songlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 11504aa

Please sign in to comment.