Trying to fix errors

This commit is contained in:
Kasper Plougmann 2025-07-09 22:50:46 +02:00 committed by GitHub
parent ad42aa349f
commit 87e7ad5344
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ def download_torrent(name, url):
added = os.path.join(watch_dir, f"{name}.torrent.added")
# Skip if already processed or queued
if dest.exists() or added.exists():
if os.path.exists(dest) or os.path.exists(added):
logging.info("Skip %s torrent already present.", dest.name)
return False