summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-16 16:50:13 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-16 16:50:13 +0100
commit846a8a0f8137b92d33d5441743344a2624a5a8b7 (patch)
tree2e6d3f6045110457727b163e874c4169405d8d68
parentno picker_log_alert (diff)
downloadtravnik-846a8a0f8137b92d33d5441743344a2624a5a8b7.tar
travnik-846a8a0f8137b92d33d5441743344a2624a5a8b7.tar.gz
travnik-846a8a0f8137b92d33d5441743344a2624a5a8b7.tar.bz2
travnik-846a8a0f8137b92d33d5441743344a2624a5a8b7.tar.lz
travnik-846a8a0f8137b92d33d5441743344a2624a5a8b7.tar.xz
travnik-846a8a0f8137b92d33d5441743344a2624a5a8b7.tar.zst
travnik-846a8a0f8137b92d33d5441743344a2624a5a8b7.zip
-rwxr-xr-xradio/radio.py2
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():