lparam / pylrc

A python library for parsing and converting .lrc files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyLRC

A python library for parsing and converting .lrc files

Usage

import pylrc

lrc_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.325

srt = subs.toSRT() # convert lrc to srt string

lrc_string = subs.toLRC() # convert to lrc string

Installation

sudo pip install pylrc

About

A python library for parsing and converting .lrc files

License:MIT License


Languages

Language:Python 100.0%