Skip to content
Snippets Groups Projects
Commit 24ffed75 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

SpotifyRecorder: increase tolerance

parent d639d11c
Branches
Tags
No related merge requests found
......@@ -225,7 +225,7 @@ class SpotifyRecorder:
waitDuration = int(time.time() - startTime)
waitDuration += timeWaitedForPlaying
if waitDuration < trackDurationInSeconds - self._WAIT_TIME_TRACK_PLAYING_SHORT_IN_S:
if waitDuration < trackDurationInSeconds - self._WAIT_TIME_TRACK_PLAYING_SHORT_IN_S * 2:
raise RuntimeError(
f'Track finished too early (waited: {waitDuration}s, expected: {trackDurationInSeconds}s)')
if waitDuration > trackDurationInSeconds + self._WAIT_TIME_TRACK_PLAYING_SHORT_IN_S * 3:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment