mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-16 08:56:44 +03:00
Fix to ensure that skipped segments get reported to SponsorBlock (if the option is enabled)
This commit is contained in:
@@ -105,10 +105,10 @@ class DeviceListener:
|
|||||||
# Skips to the next segment (waits for the time to pass)
|
# Skips to the next segment (waits for the time to pass)
|
||||||
async def skip(self, time_to, position, UUID):
|
async def skip(self, time_to, position, UUID):
|
||||||
await asyncio.sleep(time_to)
|
await asyncio.sleep(time_to)
|
||||||
asyncio.create_task(self.lounge_controller.seek_to(position))
|
await asyncio.gather(
|
||||||
asyncio.create_task(
|
self.lounge_controller.seek_to(position),
|
||||||
self.api_helper.mark_viewed_segments(UUID)
|
self.api_helper.mark_viewed_segments(UUID)
|
||||||
) # Don't wait for this to finish
|
)
|
||||||
|
|
||||||
|
|
||||||
# Stops the connection to the device
|
# Stops the connection to the device
|
||||||
|
|||||||
Reference in New Issue
Block a user