From 832f5ce4433687551812e4208e1d565264130711 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Mon, 26 Feb 2024 06:04:41 +0100 Subject: ♻️ Refactored format_str method to one `format_str_media` method. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tidal_dl_ng/gui.py') diff --git a/tidal_dl_ng/gui.py b/tidal_dl_ng/gui.py index f7248fd..6afbe33 100644 --- a/tidal_dl_ng/gui.py +++ b/tidal_dl_ng/gui.py @@ -310,7 +310,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): else: self.s_tr_results_add_top_level_item.emit(child) - def populate_tree_result_child(self, item: [Mix | Album | Playlist], index_count_digits: int): + def populate_tree_result_child(self, item: [Track | Video | Mix | Album | Playlist], index_count_digits: int): # Format seconds to mm:ss. m, s = divmod(item.duration_sec, 60) duration: str = f"{m:02d}:{s:02d}" -- cgit v1.3.1