Skip to content

Commit

Permalink
Support .part file names. Fixes #4 and #6
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitZugmeyer committed Jul 16, 2013
1 parent 56c4699 commit ec18e3c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions addic7ed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,11 @@ def launch(self):
args = self.args
filename = self.filename

if os.path.isfile(filename) and not filename.endswith('.srt'):
filename = remove_extension(filename) + '.srt'
if os.path.isfile(filename):
if filename.endswith('.part'):
filename = remove_extension(filename)
if not filename.endswith('.srt'):
filename = remove_extension(filename) + '.srt'

print 'Target SRT file:', filename
ignore = False
Expand Down

0 comments on commit ec18e3c

Please sign in to comment.