From e7060bd3ae74b8858ea14538a0823206d5e0ffc8 Mon Sep 17 00:00:00 2001 From: cere Date: Wed, 21 Feb 2024 03:46:13 -0500 Subject: [PATCH] another fix --- resources/lib/plugin_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/plugin_content.py b/resources/lib/plugin_content.py index f236fa6..36c7939 100644 --- a/resources/lib/plugin_content.py +++ b/resources/lib/plugin_content.py @@ -218,7 +218,7 @@ class PluginContent: def __get_track_item( self, track: Dict[str, Any], append_artist_to_label: bool = False ) -> Tuple[str, xbmcgui.ListItem]: - duration = track["duration_ms"] / 1000 + duration = int(math.ceil(track["duration_ms"] / 1000)) label = self.__get_track_name(track, append_artist_to_label) title = label if self.append_artist_to_title else track["name"]