From a9ff6dc558637452e635f5ba44f5842715b41b2d Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Thu, 14 Nov 2024 15:10:14 +0100 Subject: 🛠️ Fixed segment id calculation for BTS tracks. Fixes #232 Fixed GUI crash on trailing / leading spaces in search terms. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/gui.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tidal_dl_ng/gui.py') diff --git a/tidal_dl_ng/gui.py b/tidal_dl_ng/gui.py index 7aa2150..d85c8a0 100644 --- a/tidal_dl_ng/gui.py +++ b/tidal_dl_ng/gui.py @@ -511,6 +511,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): self._init_dl() def search(self, query: str, types_media: SearchTypes) -> [ResultItem]: + query = query.strip() + # If a direct link was searched for, skip search and create the object from the link directly. if "http" in query: media_type = get_tidal_media_type(query) -- cgit v1.3.1