mirror of
https://github.com/Laborratte5/linux-iso-seeder.git
synced 2025-12-30 17:08:17 +01:00
Fix file check
This commit is contained in:
parent
2dcee60351
commit
d070d46a31
1 changed files with 5 additions and 2 deletions
|
|
@ -26,8 +26,11 @@ def download_torrent(name, url):
|
|||
added = os.path.join(watch_dir, f"{name}.torrent.added")
|
||||
|
||||
# Skip if already processed or queued
|
||||
if os.path.exists(dest) or os.path.exists(added):
|
||||
logging.info("Skip %s – torrent already present.", dest.name)
|
||||
if os.path.exists(dest):
|
||||
logging.info("Skip %s – torrent already present.", os.path.basename(dest))
|
||||
return False
|
||||
if os.path.exists(added):
|
||||
logging.info("Skip %s – torrent already present.", os.path.basename(added))
|
||||
return False
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue