From 846a8a0f8137b92d33d5441743344a2624a5a8b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Thu, 16 Mar 2023 16:50:13 +0100 Subject: rsync does not write directly (good actually) --- radio/radio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- cgit v1.2.3