summaryrefslogtreecommitdiffstats
path: root/radio
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-16 17:02:04 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-16 17:02:04 +0100
commit2d6eec4381ffb52da77584df42f8fc98b9477af5 (patch)
tree8d28ffa822264c5092be8192bd1d1974b7e3a8d7 /radio
parentradio: log (diff)
downloadtravnik-2d6eec4381ffb52da77584df42f8fc98b9477af5.tar
travnik-2d6eec4381ffb52da77584df42f8fc98b9477af5.tar.gz
travnik-2d6eec4381ffb52da77584df42f8fc98b9477af5.tar.bz2
travnik-2d6eec4381ffb52da77584df42f8fc98b9477af5.tar.lz
travnik-2d6eec4381ffb52da77584df42f8fc98b9477af5.tar.xz
travnik-2d6eec4381ffb52da77584df42f8fc98b9477af5.tar.zst
travnik-2d6eec4381ffb52da77584df42f8fc98b9477af5.zip
Diffstat (limited to 'radio')
-rwxr-xr-xradio/radio.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/radio/radio.py b/radio/radio.py
index b9806ca..9e0233c 100755
--- a/radio/radio.py
+++ b/radio/radio.py
@@ -82,7 +82,9 @@ def alerts(session, playstack, save_path, torrents):
if a.handle.get_file_priorities()[a.index] != 4:
print(f"alerts: IT LOOKS LIKE THIS FILE WAS CHECKED FROM CACHE")
continue
- playstack.append(a.handle.torrent_file().files().file_path(a.index))
+ fname = a.handle.torrent_file().files().file_path(a.index)
+ playstack.append(fname)
+ print("alerts: ADDED FILE {fname} to playstack")
if not random_file(a.handle, save_path):
session.remove_torrent(a.handle)
torrents.remove(a.handle)