Skip to content

Commit

Permalink
fix: Reload and process after tag removals.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfit committed Oct 21, 2017
1 parent ecfcc63 commit 96c2990
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/eyed3/plugins/classic.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,17 +455,21 @@ def handleFile(self, f):
parse_version = self.args.tag_version

super(ClassicPlugin, self).handleFile(f, tag_version=parse_version)

if not self.audio_file:
return

self.terminal_width = getTtySize()[1]
self.printHeader(f)
printMsg("-" * self.terminal_width)

if self.handleRemoves(self.audio_file.tag):
# Reload after removal
super(ClassicPlugin, self).handleFile(f, tag_version=parse_version)
if not self.audio_file:
return

new_tag = False
if (not self.audio_file.tag or
self.handleRemoves(self.audio_file.tag)):
if not self.audio_file.tag:
self.audio_file.initTag(version=parse_version)
new_tag = True

Expand Down

0 comments on commit 96c2990

Please sign in to comment.