From f8fa2d3a4747f30a5764473cf34d507c1622c599 Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Sun, 17 Nov 2024 04:36:54 +1100 Subject: [PATCH] Fix incorrect duration display in Kodi 18 and Kodi 19 --- resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py b/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py index 1b36cbef9..b7f5ea5a8 100644 --- a/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py +++ b/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py @@ -113,7 +113,7 @@ def set_info(list_item, item, properties, set_play_count=True, resume=True): list_item.addStreamInfo(info_type, {'duration': duration}) if duration is not None: - info_labels['duration'] = value + info_labels['duration'] = duration elif isinstance(item, DirectoryItem): info_type = 'video'