daybrain 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/watcher.py +2 -2
package/package.json
CHANGED
package/watcher.py
CHANGED
|
@@ -65,7 +65,7 @@ def main():
|
|
|
65
65
|
new_app = result.get("app", "")
|
|
66
66
|
new_title = result.get("title", "")
|
|
67
67
|
|
|
68
|
-
changed = new_app != current_app or
|
|
68
|
+
changed = new_app != current_app or new_title != current_title
|
|
69
69
|
|
|
70
70
|
if changed and current_app:
|
|
71
71
|
duration = time.time() - current_start
|
|
@@ -90,7 +90,7 @@ def main():
|
|
|
90
90
|
current_title = new_title
|
|
91
91
|
current_start = time.time()
|
|
92
92
|
last_emit = time.time()
|
|
93
|
-
elif current_app and
|
|
93
|
+
elif current_app and (time.time() - last_emit) >= emit_interval:
|
|
94
94
|
duration = time.time() - current_start
|
|
95
95
|
print(
|
|
96
96
|
json.dumps(
|