diff options
Diffstat (limited to 'radio')
-rwxr-xr-x | radio/radio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radio/radio.py b/radio/radio.py index 5b6357d..fb19db3 100755 --- a/radio/radio.py +++ b/radio/radio.py @@ -58,7 +58,7 @@ def watcher(session, torrents, s, d, active_torrents=10): i.add_watch(d) for event in i.event_gen(yield_nones=False): (_, type_names, path, filename) = event - if "IN_CLOSE_WRITE" in type_names and filename.endswith(".torrent"): + if ("IN_CLOSE_WRITE" in type_names or "IN_MOVED_TO" in type_names) and filename.endswith(".torrent"): t = Torrent() t.file(path + filename) for pth, size in t.paths(): |