Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 845185d

Browse files
committed
check_activity now looks for placeholder div. Fixes #24
Previously we checked if the peer's status contained the word "Synced" to tell if we were syncing or not. This didn't work if the web interface was set to a language other than English. However, looking for the Up/Down arrow placeholder div will always work.
1 parent a7fd421 commit 845185d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

btsyncindicator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def check_activity(self, folders):
369369
isactive = False
370370
for folder in folders:
371371
for peer in folder['peers']:
372-
if peer['status'].find('Synced') == -1:
372+
if peer['status'].find('<div') != -1:
373373
logging.info('Sync activity detected')
374374
isactive = True
375375
break

0 commit comments

Comments
 (0)