another fix
This commit is contained in:
parent
4d643eb22b
commit
e7060bd3ae
|
@ -218,7 +218,7 @@ class PluginContent:
|
||||||
def __get_track_item(
|
def __get_track_item(
|
||||||
self, track: Dict[str, Any], append_artist_to_label: bool = False
|
self, track: Dict[str, Any], append_artist_to_label: bool = False
|
||||||
) -> Tuple[str, xbmcgui.ListItem]:
|
) -> 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)
|
label = self.__get_track_name(track, append_artist_to_label)
|
||||||
title = label if self.append_artist_to_title else track["name"]
|
title = label if self.append_artist_to_title else track["name"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue