mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-21 21:51:28 +00:00
Fix for listening activity
This commit is contained in:
parent
78305a8e33
commit
ef88593f60
|
@ -47,7 +47,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 != [] and player.pause is False:
|
||||
if value and src.fw_api.current_instance.token != None 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())
|
||||
|
|
Loading…
Reference in a new issue