def rename_file(self, file, track, release, artist):
    extension = file.split('.')[(- 1)]
    self.replace_tag('d', track['disc'])
    self.replace_tag('dt', track['disctotal'])
    self.replace_tag('n', track['number'])
    self.replace_tag('nt', track['tracktotal'])
    self.replace_tag('t', track['title'])
    self.replace_tag('a', artist.name)
    self.replace_tag('b', release.album_artist)
    dirname = os.path.dirname(file)
    if (dirname == ''):
        dirname = ('.' + os.sep)
    shutil.move(file, ((((dirname + os.sep) + self.processed) + '.') + extension))
    self.reset()
def rename_file(self, file, track, release, artist):
    extension = file.split('.')[(- 1)]
    self.replace_tag('d', track['disc'])
    self.replace_tag('dt', track['disctotal'])
    self.replace_tag('n', track['number'])
    self.replace_tag('nt', track['tracktotal'])
    self.replace_tag('t', track['title'])
    self.replace_tag('a', artist.name)
    self.replace_tag('b', release.album_artist)
    dirname = os.path.dirname(file)
    if (dirname == ):
        dirname = ('.' + os.sep)
    shutil.move(file, ((((dirname + os.sep) + self.processed) + '.') + extension))
    self.reset()