Fix pushing pause to webhook regardless of time

This commit is contained in:
2023-01-16 13:45:54 -05:00
parent 53b0abe03a
commit 34a03bed6a

View File

@ -111,12 +111,6 @@ class WebhooksFrontend(pykka.ThreadingActor, CoreListener):
post_data = self._build_post_data(tl_track.track, time_position=time_position)
if time_position_sec < duration // 2 and time_position_sec < 240:
logger.debug(
"Track not played long enough to scrobble. (50% or 240s)"
)
return
if self.last_start_time is None:
self.last_start_time = int(time.time()) - duration
logger.info(