The branch, frodo has been updated
       via  f722b6820d2b2d81f6291cb7bc4a3bac5e2054a5 (commit)
       via  a635ad529ccf91a1d1749aec2100b033cb2b5f9a (commit)
      from  b805521ce0b650f4d916ecb524a50bb0bd3a13ec (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=f722b6820d2b2d81f6291cb7bc4a3bac5e2054a5


http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=a635ad529ccf91a1d1749aec2100b033cb2b5f9a

commit a635ad529ccf91a1d1749aec2100b033cb2b5f9a
Author: Martijn Kaijser <[email protected]>
Date:   Sun Feb 10 18:07:47 2013 +0100

    [service.watchdog] 0.7.1

diff --git a/service.watchdog/addon.xml b/service.watchdog/addon.xml
index c97f433..d723551 100644
--- a/service.watchdog/addon.xml
+++ b/service.watchdog/addon.xml
@@ -2,7 +2,7 @@
 <addon
     id="service.watchdog"
     name="Watchdog"
-    version="0.7.0"
+    version="0.7.1"
     provider-name="takoi">
   <requires>
     <import addon="xbmc.python"              version="2.1.0"/>
diff --git a/service.watchdog/changelog.txt b/service.watchdog/changelog.txt
index 073e151..c518228 100644
--- a/service.watchdog/changelog.txt
+++ b/service.watchdog/changelog.txt
@@ -1,3 +1,6 @@
+[B]0.7.1[/B]
+- fixed: library was cleaned even if it was disabled
+
 [B]0.7.0[/B]
 - support for network shares
 - now only scans the media source an event appeared in
diff --git a/service.watchdog/core/main.py b/service.watchdog/core/main.py
index 7c84ddb..fdf858a 100644
--- a/service.watchdog/core/main.py
+++ b/service.watchdog/core/main.py
@@ -122,14 +122,16 @@ class EventHandler(FileSystemEventHandler):
     self.event_queue.scan()
   
   def on_deleted(self, event):
-    if not event.is_directory:
-      _, ext = os.path.splitext(str(event.src_path))
-      if EXTENSIONS.find('|%s|' % ext) == -1:
-        return
-    self.event_queue.clean()
+    if CLEAN:
+      if not event.is_directory:
+        _, ext = os.path.splitext(str(event.src_path))
+        if EXTENSIONS.find('|%s|' % ext) == -1:
+          return
+      self.event_queue.clean()
   
   def on_moved(self, event):
-    self.event_queue.clean()
+    if CLEAN:
+      self.event_queue.clean()
     self.event_queue.scan()
   
   def on_any_event(self, event):
diff --git a/service.watchdog/core/polling.py b/service.watchdog/core/polling.py
index 31f6ab7..84d8267 100644
--- a/service.watchdog/core/polling.py
+++ b/service.watchdog/core/polling.py
@@ -17,6 +17,7 @@ import xbmc
 from functools import partial
 from watchdog.observers.api import EventEmitter, BaseObserver
 from watchdog.events import DirDeletedEvent, DirCreatedEvent
+from main import log
 
 def hidden(path):
   return path.startswith('.')
@@ -76,6 +77,13 @@ class Poller(EventEmitter):
       created, deleted, modified = self._snapshot.diff(new_snapshot)
       self._snapshot = new_snapshot
       
+      if deleted:
+        log("poller: delete event appeared in %s" % deleted)
+      if created:
+        log("poller: create event appeared in %s" % created)
+      if modified and not(deleted or created):
+        log("poller: modify event appeared in %s" % modified)
+      
       if modified or deleted:
         self.queue_event(DirDeletedEvent(self.watch.path + '*'))
       if modified or created:

-----------------------------------------------------------------------

Summary of changes:
 .../LICENSE.txt                                    |    0
 script.categories/addon.xml                        |   17 +
 script.categories/changelog.txt                    |   20 ++
 script.categories/default.py                       |  314 ++++++++++++++++++++
 script.categories/icon.png                         |  Bin 0 -> 5458 bytes
 .../resources/language/English/strings.xml         |   38 +++
 .../resources/language/German/strings.xml          |   37 +++
 script.categories/resources/settings.xml           |   72 +++++
 service.watchdog/addon.xml                         |    2 +-
 service.watchdog/changelog.txt                     |    3 +
 service.watchdog/core/main.py                      |   14 +-
 service.watchdog/core/polling.py                   |    8 +
 12 files changed, 518 insertions(+), 7 deletions(-)
 copy {screensaver.qlock => script.categories}/LICENSE.txt (100%)
 create mode 100644 script.categories/addon.xml
 create mode 100644 script.categories/changelog.txt
 create mode 100644 script.categories/default.py
 create mode 100644 script.categories/icon.png
 create mode 100644 script.categories/resources/language/English/strings.xml
 create mode 100644 script.categories/resources/language/German/strings.xml
 create mode 100644 script.categories/resources/settings.xml


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to