mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-30 11:03:02 +00:00
Hot fix when pause for track activity history
This commit is contained in:
parent
9c65117e9c
commit
a794cb4f5a
@ -35,7 +35,7 @@ if track_activity_history:
|
|||||||
def time_observer(_name, value):
|
def time_observer(_name, value):
|
||||||
# Here, _value is either None if nothing is playing or a float containing
|
# Here, _value is either None if nothing is playing or a float containing
|
||||||
# fractional seconds since the beginning of the file.
|
# 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:
|
if value >= 30.0 and value <= 30.1:
|
||||||
# detect 30 secs for reporting listen activity
|
# detect 30 secs for reporting listen activity
|
||||||
track = player_fw_storage.storage.get(track_url_to_uuid())
|
track = player_fw_storage.storage.get(track_url_to_uuid())
|
||||||
|
Loading…
Reference in New Issue
Block a user