用于分析.lrc文件的库
pylrc的Python项目详细描述
用于解析和转换.lrc文件的python库
用法
importpylrclrc_file=open('example.lrc')lrc_string=''.join(lrc_file.readlines())lrc_file.close()subs=pylrc.parse(lrc_string)subs.shift(minutes=1,seconds=13,milliseconds=325)# offset by 01:13.325srt=subs.toSRT()# convert lrc to srt stringlrc_string=subs.toLRC()# convert to lrc string
安装
sudo pip install pylrc