From 518b1d9b2e8c058870160f8094ef518ef1970905 Mon Sep 17 00:00:00 2001 From: dmunozv04 <39565245+dmunozv04@users.noreply.github.com> Date: Sun, 15 Oct 2023 13:59:36 +0200 Subject: [PATCH] Fix to ensure that skipped segments get reported to SponsorBlock (if the option is enabled) --- iSponsorBlockTV/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iSponsorBlockTV/main.py b/iSponsorBlockTV/main.py index eb9fd29..7afc47b 100644 --- a/iSponsorBlockTV/main.py +++ b/iSponsorBlockTV/main.py @@ -105,10 +105,10 @@ class DeviceListener: # Skips to the next segment (waits for the time to pass) async def skip(self, time_to, position, UUID): await asyncio.sleep(time_to) - asyncio.create_task(self.lounge_controller.seek_to(position)) - asyncio.create_task( + await asyncio.gather( + self.lounge_controller.seek_to(position), self.api_helper.mark_viewed_segments(UUID) - ) # Don't wait for this to finish + ) # Stops the connection to the device