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)
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
Project details
Release history Release notifications | RSS feed
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.1.2.tar.gz
(3.9 kB
view details)
File details
Details for the file pylrc-0.1.2.tar.gz
.
File metadata
- Download URL: pylrc-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d6a07b7d211f71299b3faea5a1ca64c2fc45e3d704227c07ccdb0cc09386d1 |
|
MD5 | 0266cfd5fbfba59399ec89a167f02adf |
|
BLAKE2b-256 | 0911eff2a73a32b204ab040811f5a966f9342960f8c889af2bb20e544640b630 |