diff --git a/SpotifyRecorder.py b/SpotifyRecorder.py index 058b6b496c1b40f363e82db453f4c9944b2b8d09..77ea0e6162ee0bcdc38e9e6089de23c761faefac 100644 --- a/SpotifyRecorder.py +++ b/SpotifyRecorder.py @@ -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: