From a794cb4f5af726d0adc25317f0b337faacd9dc2b Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Thu, 8 Dec 2022 03:35:10 +0300 Subject: [PATCH] Hot fix when pause for track activity history --- src/mpv_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpv_control.py b/src/mpv_control.py index d9ef044..0fe0026 100644 --- a/src/mpv_control.py +++ b/src/mpv_control.py @@ -35,7 +35,7 @@ if track_activity_history: def time_observer(_name, value): # Here, _value is either None if nothing is playing or a float containing # fractional seconds since the beginning of the file. - if value and player.http_header_fields != []: + if value and player.http_header_fields != [] and player.pause is False: if value >= 30.0 and value <= 30.1: # detect 30 secs for reporting listen activity track = player_fw_storage.storage.get(track_url_to_uuid())