Kodi Community Forum
Player.seekTime does not update subtitles - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Player.seekTime does not update subtitles (/showthread.php?tid=370504)



Player.seekTime does not update subtitles - matejdro - 2022-11-22

In Sponsorblock addon, we are using Player.seekTime() method to skip around the video: https://github.com/siku2/script.service.sponsorblock/blob/a637603a5ea71c9dfd50c0811d1371f8d3b9408f/resources/lib/player_listener.py#L189

However, it appears that this method does not adjust the subtitles (e.g. if you skip 10 seconds, subtitles will now be 10 seconds late).

Is this expected or a bug? Do we have do to anything else while skipping to preserve subtitles?