Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

formatting fix

  • Loading branch information...
commit 4343d545e9b9d741b43f2ecafddef49187498606 1 parent 188998e
@dryes authored
Showing with 17 additions and 17 deletions.
  1. +17 −17 resce.py
View
34 resce.py
@@ -148,23 +148,23 @@ def rarsexist(rar, srr, rarlist, srrlist, args):
if sorted(srrlist)[0] == sorted(rarlist)[0] and args['force'] == False:
return True
- for f in set(srrlist[2] + rarlist):
- if os.path.isfile(f):
- if re.search(r'\.((part0?0?1\.)?rar|001)$', f, re.IGNORECASE) is not None:
- unrar = UnRAR(filename=f, binary=args['unrar_bin'])
- if unrar.unrar() == False:
- return False
-
- for f in set(srrlist[2] + rarlist):
- if os.path.isfile(f):
- try:
- os.unlink(os.path.join(os.getcwd(), f))
- except:
- if len(str(sys.exc_info()[1])) > 0:
- print(sys.exc_info()[1])
- return False
-
- return None
+ for f in set(srrlist[2] + rarlist):
+ if os.path.isfile(f):
+ if re.search(r'\.((part0?0?1\.)?rar|001)$', f, re.IGNORECASE) is not None:
+ unrar = UnRAR(filename=f, binary=args['unrar_bin'])
+ if unrar.unrar() == False:
+ return False
+
+ for f in set(srrlist[2] + rarlist):
+ if os.path.isfile(f):
+ try:
+ os.unlink(os.path.join(os.getcwd(), f))
+ except:
+ if len(str(sys.exc_info()[1])) > 0:
+ print(sys.exc_info()[1])
+ return False
+
+ return None
def inputexist(srrlist):
nf = 0
Please sign in to comment.
Something went wrong with that request. Please try again.