Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using plain lyrics #4

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

jgoguen
Copy link
Contributor

@jgoguen jgoguen commented Jul 21, 2024

Allow the option to use plain lyrics if synced aren't available. They can be fed into a LRC generator for making proper synced lyrics, and for some people plain lyrics is better than no lyrics.

Changes the CLI parser to clap to make it easier to declare flags and parse the ways someone might pass them. Keeps the existing behaviour as default (lyricsrs /path/to/music/dir works and skips plain lyrics) and adds the --allow-plain CLI flag to tell lyricsrs to write plain lyrics if that's all that's available.

@techno-disaster
Copy link
Owner

meep thanks for the change, could you rebase and add a test file name here?

"Lou Reed/The Best of Lou Reed/8. Perfect Day.m4a",
:D

Allow the option to use plain lyrics if synced aren't available. They
can be fed into a LRC generator for making proper synced lyrics, and for
some people plain lyrics is better than no lyrics.

Changes the CLI parser to `clap` to make it easier to declare flags and
parse the ways someone might pass them. Keeps the existing behaviour as
default (`lyricsrs /path/to/music/dir` works and skips plain lyrics) and
adds the `--allow-plain` CLI flag to tell `lyricsrs` to write plain
lyrics if that's all that's available.
@jgoguen jgoguen force-pushed the allow-plain-lyrics branch from ad1687e to 0f983a4 Compare July 25, 2024 12:37
Copy link
Owner

@techno-disaster techno-disaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG except the nitpick :D

And thank you for cleaning up the tests :D

src/main.rs Outdated Show resolved Hide resolved
@techno-disaster techno-disaster merged commit f2cbacd into techno-disaster:main Jul 25, 2024
1 check passed
@jgoguen jgoguen deleted the allow-plain-lyrics branch July 25, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants