Skip to content

Commit

Permalink
Merge pull request #1 from Polochon-street/logging
Browse files Browse the repository at this point in the history
Show something by default in logging
  • Loading branch information
Polochon-street committed May 26, 2021
2 parents 7d024eb + 2cb2440 commit 8559bb5
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "blissify"
version = "0.1.3"
version = "0.1.5"
authors = ["Polochon-street <[email protected]>"]
edition = "2018"
license = "GPL-3.0-only"
description = "An MPD plugin for creating smart playlists"
repository = "https://github.com/Polochon-street/blissify-rs"
keywords = ["audio", "song", "similarity", "playlist"]
readme = "README.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
Blissify - analyze an MPD library and make smart playlists
==========================================================

Blissify is an [MPD](https://www.musicpd.org/) plugin
Blissify is a program used to make playlists of songs that sound alike
from your [MPD](https://www.musicpd.org/) track library, à la Spotify radio.

Under the hood, it is an [MPD](https://www.musicpd.org/) plugin
for [bliss](https://crates.io/crates/bliss-audio).

You can use it to make playlists of songs that sound alike from an MPD
library.
Blissify needs first to analyze your music library, i.e. compute and store
a series of features from your songs, extracting the tempo, timbre,
loudness, etc.

Note: the `blissify-rs` crate is outdated. Use this crate (`blissify`) instead.
After that, it is ready to make playlists: play a song to start from, run
`blissify --playlist 30`, and voilà! You have a playlist of 30 songs that
sound like your first track.

Usage
=====
Expand All @@ -35,3 +41,10 @@ $ blissify --playlist 100

This will add 100 songs similar to the song that is currently
playing on MPD, starting with the closest possible.

Details
=======

If you are interested about what is happening under the hood, or want to make
a similar plug-in for other audio players, see
[bliss' doc](https://docs.rs/crate/bliss-audio/0.1.3).
10 changes: 7 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,13 @@ impl Library for MPDLibrary {
}

fn main() -> Result<()> {
env_logger::init();
let matches = App::new("MPDBliss")
.version("1.0")
env_logger::init_from_env(
env_logger::Env::default()
.filter_or("RUST_LOG", "info")
);

let matches = App::new("blissify")
.version(env!("CARGO_PKG_VERSION"))
.author("Polochon_street")
.about("Analyze a MPD music database, and make playlists.")
.arg(
Expand Down

0 comments on commit 8559bb5

Please sign in to comment.