Update helpers.py

Processing postpone will happened if there is file with .part extension - incomplete transmission file.
This commit is contained in:
Václav Navrátil 2015-01-09 18:38:04 +01:00
parent 8b84e4f4bc
commit 4122029df6
1 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ def replaceExtension(filename, newExt):
def isSyncFile(filename):
extension = filename.rpartition(".")[2].lower()
if extension == '!sync' or extension == 'lftp-pget-status':
if extension == '!sync' or extension == 'lftp-pget-status' or extension == 'part':
return True
else:
return False
@ -1325,4 +1325,4 @@ if __name__ == '__main__':
doctest.testmod()
def remove_article(text=''):
return re.sub(r'(?i)/^(?:(?:A(?!\s+to)n?)|The)\s(\w)', r'\1', text)
return re.sub(r'(?i)/^(?:(?:A(?!\s+to)n?)|The)\s(\w)', r'\1', text)