From 7dfc6833521f1790b93b811161a863443da45c77 Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Sat, 9 Oct 2021 17:06:11 +0300 Subject: [PATCH] Bugfix 09101705: Fixed bug when finding songs, they added to menu, not replaced --- MultiMate_Player.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MultiMate_Player.py b/MultiMate_Player.py index 7e37bf8..59a93a3 100644 --- a/MultiMate_Player.py +++ b/MultiMate_Player.py @@ -501,6 +501,8 @@ def searchinYT(): search = ui.toFindName.toPlainText() results = YoutubeSearch(search, max_results=10).to_dict() + ui.foundSongs.clear() + for i in range(len(results)): ui.foundSongs.addItem(results[i]["channel"] + ": " + results[i]["title"])