Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Version 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbug committed Aug 30, 2014
1 parent a5ffc55 commit 80b6f54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions FakeDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# The status "FAILURE/BAD" is passed to other scripts and informs them
# about failure.
#
# PP-Script version: 1.4.
# PP-Script version: 1.5.
#
# For more info and updates please visit forum topic at
# http://nzbget.net/forum/viewtopic.php?f=8&t=1394.
Expand Down Expand Up @@ -285,7 +285,7 @@ def sort_inner_files():

# Remove current and any old temp files
def clean_up():
nzb_id = int(os.environ.get('NZBPP_NZBID'))
nzb_id = os.environ.get('NZBPP_NZBID')
temp_folder = os.environ.get('NZBOP_TEMPDIR') + '/FakeDetector'

nzbids = []
Expand All @@ -302,7 +302,8 @@ def clean_up():
nzbids.append(str(cur_id))

old_temp_files = list(set(files)-set(nzbids))
old_temp_files.append(str(nzb_id))
if nzb_id in files and nzb_id not in old_temp_files:
old_temp_files.append(nzb_id)

for temp_id in old_temp_files:
temp_file = temp_folder + '/' + str(temp_id)
Expand Down

0 comments on commit 80b6f54

Please sign in to comment.