This commit is contained in:
levina 2021-09-14 04:30:32 +07:00 committed by GitHub
parent f7acad23aa
commit 909e226ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,8 +235,8 @@ async def vsong(client, message):
'geo_bypass':True,
'outtmpl':'%(title)s.%(ext)s',
'quite':True
}
query = message.command[1]
}
query = message.command[1]
try:
results = YoutubeSearch(query, max_results=1).to_dict()
link = f"https://youtube.com{results[0]['url_suffix']}"