summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/gui.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-02-26 06:04:41 +0100
committerRobert Honz <exislow+github@gmail.com>2024-02-26 06:04:41 +0100
commit832f5ce4433687551812e4208e1d565264130711 (patch)
tree71dde68d515f2c91b12b3c771aaf3ab425ce264a /tidal_dl_ng/gui.py
parentd5d53c6c921598bfd5f52b6330ddef6c9f7a3ed7 (diff)
downloadtidal-dl-ng-832f5ce4433687551812e4208e1d565264130711.tar.gz
♻️ Refactored format_str method to one `format_str_media` method.
Diffstat (limited to 'tidal_dl_ng/gui.py')
-rw-r--r--tidal_dl_ng/gui.py2
1 files changed, 1 insertions, 1 deletions
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}"