Reduced some vuln after SAST scan
This commit is contained in:
@@ -28,7 +28,7 @@ async def handle_command(room, message, bot, PREFIX, config):
|
||||
else:
|
||||
search_terms = " ".join(args)
|
||||
logging.info(f"Performing YouTube search for: {search_terms}")
|
||||
results = YoutubeSearch(search_terms, max_results=10).to_dict()
|
||||
results = YoutubeSearch(search_terms, max_results=1).to_dict()
|
||||
if results:
|
||||
output = generate_output(results)
|
||||
await send_collapsible_message(room, bot, output)
|
||||
|
Reference in New Issue
Block a user