From 5a013f518076dee10ac3e44c01e51a775ab2e16b Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Tue, 14 May 2024 07:34:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Import=20changed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/helper/gui.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tidal_dl_ng/helper/gui.py b/tidal_dl_ng/helper/gui.py index 834d9b6..82b7f7b 100644 --- a/tidal_dl_ng/helper/gui.py +++ b/tidal_dl_ng/helper/gui.py @@ -5,8 +5,6 @@ from tidalapi import Album, Mix, Playlist, Track, UserPlaylist, Video from tidalapi.artist import Artist from tidalapi.media import Quality -from tidal_dl_ng.helper.gui import HumanProxyModel - def get_table_data( item: QtWidgets.QTreeWidgetItem, column: int @@ -23,7 +21,7 @@ def get_table_text(item: QtWidgets.QTreeWidgetItem, column: int) -> str: def get_results_media_item( - index: QtCore.QModelIndex, proxy: HumanProxyModel, model: QtGui.QStandardItemModel + index: QtCore.QModelIndex, proxy: QtCore.QSortFilterProxyModel, model: QtGui.QStandardItemModel ) -> Track | Video | Album | Artist | Playlist | Mix: # Switch column to "obj" column and map proxy data to our model. item: QtGui.QStandardItem = model.itemFromIndex(proxy.mapToSource(index.siblingAtColumn(1)))