Skip to content

Commit

Permalink
skip prompt if detected encoding is utf-8 bom
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyanghu committed Aug 29, 2020
1 parent 1a3bdb4 commit 779d4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cuefix/cuefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def detect_file_encoding(self):
if self.verbose:
log.info('found encoding: {}'.format(c))
if self.interactive:
if c == 'ascii':
if c in ['ascii', 'utf-8-sig']:
if self.verbose:
log.info('woohoo! skip prompt!')
log.info('woohoo! it is {}, skip prompt!'.format(c))
return c
print(decoded)
print('encoding: {}', c)
Expand Down

0 comments on commit 779d4b7

Please sign in to comment.