diff --git a/src/mpv_control.py b/src/mpv_control.py index d026ba7..99d52c8 100644 --- a/src/mpv_control.py +++ b/src/mpv_control.py @@ -54,7 +54,7 @@ if track_activity_history or scrobbler_to_fediverse_token != '': # Here, _value is either None if nothing is playing or a float containing # fractional seconds since the beginning of the file. if value: - if value >= 30.0 and value <= 30.1 and player.pause is False: + if value >= 30.0 and value <= 30.2 and player.pause is False: # detect 30 secs for reporting listen activity try: track = player_fw_storage.storage.get(track_url_to_uuid()) @@ -85,8 +85,8 @@ if track_activity_history or scrobbler_to_fediverse_token != '': requests.post(f'https://{scrobbler_to_fediverse_instance}/api/v1/statuses', json=status_obj, headers={'Authorization': f'Bearer {scrobbler_to_fediverse_token}'}) - time.sleep(0.100) - if value > 30.1: + time.sleep(1) + if value > 30.2: # passive mode time.sleep(1) return