def SaveChange(self,*args): if self.timeChange <> 0: lrc = lrcMod.writeLrc(self.lrcLines,self.timeLines,self.timeChange) art = self.exaile.player.current.get_tag_display('artist') tit = self.exaile.player.current.get_tag_display('title') locname = self.exaile.player.current.local_file_name() lrcMod.saveLrc(lrc,self.options['LyricFolder'], self.ops[self.options['Filename']](art, tit, locname))
def SaveChange(self, *args): if self.timeChange <> 0: lrc = lrcMod.writeLrc(self.lrcLines,self.timeLines,self.timeChange) art = self.exaile.player.current.get_tag_display('artist') tit = self.exaile.player.current.get_tag_display('title') locname = self.exaile.player.current.local_file_name() lrcMod.saveLrc(lrc,self.options['LyricFolder'], self.ops[self.options['Filename']](art, tit, locname))
def SaveChange(self, *args): if self.timeChange <> 0: lrc = lrcMod.writeLrc(self.lrcLines,self.timeLines,self.timeChange) art = self.exaile.player.current.get_tag_display('artist') tit = self.exaile.player.current.get_tag_display('title') try: locname = os.path.basename(self.exaile.player.current.local_file_name()) except AttributeError: locname = '-'.join([art, tit]) lrcMod.saveLrc(lrc,self.options['LyricFolder'], self.ops[self.options['Filename']](art, tit, locname))
def SaveChange(self, *args): if self.timeChange <> 0: lrc = lrcMod.writeLrc(self.lrcLines, self.timeLines, self.timeChange) art = self.exaile.player.current.get_tag_display('artist') tit = self.exaile.player.current.get_tag_display('title') try: locname = os.path.basename( self.exaile.player.current.local_file_name()) except AttributeError: locname = '-'.join([art, tit]) lrcMod.saveLrc( lrc, self.options['LyricFolder'], self.ops[self.options['Filename']](art, tit, locname))