Skip to main content

A library for parsing .lrc files

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylrc-0.0.2.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page