🛠️ Fixed segment id calculation for BTS tracks. Fixes #232

Fixed GUI crash on trailing / leading spaces in search terms.
This commit is contained in:
Robert Honz
2024-11-14 15:10:14 +01:00
parent 8cb907f908
commit a9ff6dc558
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -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)