Kaynağa Gözat

Fix pushing pause to webhook regardless of time

Colin Powell 2 yıl önce
ebeveyn
işleme
34a03bed6a
1 değiştirilmiş dosya ile 0 ekleme ve 6 silme
  1. 0 6
      mopidy_webhooks/frontend.py

+ 0 - 6
mopidy_webhooks/frontend.py

@@ -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(