mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
Update helpers.py
Processing postpone will happened if there is file with .part extension - incomplete transmission file.
This commit is contained in:
parent
8b84e4f4bc
commit
4122029df6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user