diff options
author | cedricbonhomme <devnull@localhost> | 2010-07-05 11:52:30 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-07-05 11:52:30 +0200 |
commit | 57fd3331324ca5bc26cf849ddd11cf74011f598c (patch) | |
tree | b39f9294a2232026a8fecb2ccdd8cd3cfe07d72e /pyAggr3g470r.py | |
parent | Now pyAggr3g470r only works with Python 2.7. OrderedDict are used in order to... (diff) | |
download | newspipe-57fd3331324ca5bc26cf849ddd11cf74011f598c.tar.gz newspipe-57fd3331324ca5bc26cf849ddd11cf74011f598c.tar.bz2 newspipe-57fd3331324ca5bc26cf849ddd11cf74011f598c.zip |
Release 1.5. (+ a minor bug fix.)
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-x | pyAggr3g470r.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 78ce5390..9fee1896 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -886,16 +886,16 @@ class Root: installed. """ time.sleep(10) - old_size = 0 + old_time = 0 try: print "Watching %s" % utils.sqlite_base while True: time.sleep(2) # very simple test - if os.path.getsize(utils.sqlite_base) != old_size: + if os.path.getmtime(utils.sqlite_base) != old_time: print "The base of feeds (%s) has changed.\nReloading..." % utils.sqlite_base self.update() - old_size = os.path.getsize(utils.sqlite_base) + old_time = os.path.getmtime(utils.sqlite_base) except KeyboardInterrupt: pass print "Stop watching", utils.sqlite_base |