diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-11-14 15:10:14 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-11-14 15:10:14 +0100 |
| commit | a9ff6dc558637452e635f5ba44f5842715b41b2d (patch) | |
| tree | ed1d0f9ed06e3d183ca4b2ad144f28499cd7001b /tidal_dl_ng/gui.py | |
| parent | 8cb907f908170cf0e46f757c1bd35150e056e36d (diff) | |
| download | tidal-dl-ng-a9ff6dc558637452e635f5ba44f5842715b41b2d.tar.gz | |
🛠️ Fixed segment id calculation for BTS tracks. Fixes #232
Fixed GUI crash on trailing / leading spaces in search terms.
Diffstat (limited to 'tidal_dl_ng/gui.py')
| -rw-r--r-- | tidal_dl_ng/gui.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
