Skip to content

Commit

Permalink
Allow using plain lyrics
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jgoguen committed Jul 23, 2024
1 parent b91c32b commit ad1687e
Show file tree
Hide file tree
Showing 5 changed files with 304 additions and 99 deletions.
127 changes: 127 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ name = "lyricsrs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.5.9", features = ["derive"] }
lofty = "0.20.1"
reqwest = { version = "0.12.5", features = ["json", "blocking"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1", features = ["full"] }
urlencoding = "2.1.3"
walkdir = "2.5.0"

[dev-dependencies]
temp-dir = "0.1.13"
Loading

0 comments on commit ad1687e

Please sign in to comment.