Skip to content
/ pylrc Public

A python library for parsing and converting .lrc files

License

Notifications You must be signed in to change notification settings

doakey3/pylrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
for sub in subs:
    sub.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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages