feat: add playback seeking
Backend / Lint i formatowanie (pull_request) Successful in 4s
Backend / Testy i kontrakt API (pull_request) Successful in 4s
Backend / Testowy build obrazu (pull_request) Successful in 11s
Panel / Lint, typy i build (pull_request) Successful in 21s

This commit is contained in:
mmacierzanka committed 2026-08-21 18:53:38 +02:00
1 parent ed13d4af06
commit 7ef0a43693
12 files changed
+170 -8

No files matched your search

+3 -1
View File
@@ -59,9 +59,11 @@ def build_player(default_plays: int = 5) -> tuple[MusicPlayer, FakeVoiceClient]:
bot.loop = asyncio.get_event_loop()
voice_client = FakeVoiceClient()
async def recreate(track, loop=None):
async def recreate(track, loop=None, start_at=0.0):
fresh = FakeTrack(track.id)
fresh.plays_left = track.plays_left
fresh.duration = track.duration
fresh.elapsed = start_at
return fresh
tracks = MagicMock()