diff --git a/addon/plugin.video.torttube/addon.xml b/addon/plugin.video.torttube/addon.xml index 00b2af9..72eca3a 100644 --- a/addon/plugin.video.torttube/addon.xml +++ b/addon/plugin.video.torttube/addon.xml @@ -1,7 +1,7 @@ diff --git a/addon/plugin.video.torttube/main.py b/addon/plugin.video.torttube/main.py index b813c2e..ee54755 100644 --- a/addon/plugin.video.torttube/main.py +++ b/addon/plugin.video.torttube/main.py @@ -663,31 +663,15 @@ class SponsorBlockMonitor(xbmc.Monitor): _log("sponsorblock: timed out waiting for playback to start") return - # Capture the file path that's actually playing now; bail if it changes - # mid-monitor (delegate-to-pv.youtube means our SponsorBlockMonitor is - # alive in our plugin's context while pv.youtube drives playback — - # if the user starts a different video, our skip-segments are stale). - # - try: - initial_file = player.getPlayingFile() - except Exception: - initial_file = "" - while not self.abortRequested() and player.isPlaying(): try: pos = float(player.getTime()) - current_file = player.getPlayingFile() except Exception: - # getTime raises various exception types when the player goes - # away mid-poll (Kodi shutdown, plugin reload, etc). Wider catch - # so an exception path doesn't escape into _play's finally and + # getTime raises various types when the player goes away + # mid-poll (Kodi shutdown, plugin reload, etc). Wider catch so + # an exception path doesn't escape into _play's finally and # leak the MPD HTTP server. return - if initial_file and current_file and current_file != initial_file: - # User started a different video — our skip segments are for the - # old one, abort instead of spurious-skipping the new content. - _log("sponsorblock: playing file changed, monitor exiting") - return for seg in self.segments: uuid = seg.get("UUID", "") if uuid in self.skipped: diff --git a/sidecar/Cargo.toml b/sidecar/Cargo.toml index b5ff0bb..3e638af 100644 --- a/sidecar/Cargo.toml +++ b/sidecar/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["crates/torttube-sidecar"] [workspace.package] -version = "1.0.1" +version = "1.0.2" edition = "2021" license = "GPL-3.0-or-later" authors = ["Cobb "]