Skip to content

Commit

Permalink
Allow using plain lyrics (#4)
Browse files Browse the repository at this point in the history
* Allow using plain lyrics

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.

* Update src/main.rs

Co-authored-by: td <[email protected]>

* Update main.rs

---------

Co-authored-by: td <[email protected]>
  • Loading branch information
jgoguen and techno-disaster authored Jul 25, 2024
1 parent edc69cd commit f2cbacd
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 95 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,6 +9,7 @@ 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"
regex = "1.10.5"
reqwest = { version = "0.12.5", features = ["json", "blocking"] }
Expand All @@ -17,3 +18,6 @@ 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 f2cbacd

Please sign in to comment.