Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dnalchemist/music-library
https://github.com/dnalchemist/music-library
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnalchemist/music-library
- Owner: DNAlchemist
- License: mit
- Created: 2017-08-10T14:17:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T20:05:19.000Z (about 7 years ago)
- Last Synced: 2024-12-14T09:19:44.189Z (13 days ago)
- Language: Java
- Size: 106 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Music Library
[![Build Status][travis-image]][travis-url]
[![Maven Central][maven-image]][maven-url]
[![Coverage Status][coveralls-image]][coveralls-url][![License][license-image]][license-url]
Java library for music downloads
### download the track
MusicLibrary musicLibrary = MusicLibrary.createDefaultLibrary(host);
musicLibrary.searchTrack("Kasabian", "Underdog")
.ifPresent(track -> {
try(InputStream in = musicLibrary.fetchInputStream(track)) {
Files.copy(in, Paths.get("Kasabian - Underdog.mp3"))
} catch (IOException e) {
e.printStackTrace();
}
});
### guess the trackMusicGuesser lib = MusicGuesser.createDefaultGuesser(host);
List searchResult = lib.suggest("Robert Jo");
assert searchResult.contains("Robert johnson - little queen of spades");[travis-image]: https://travis-ci.org/DNAlchemist/music-library.svg?branch=master
[travis-url]: https://travis-ci.org/DNAlchemist/music-library
[maven-image]: https://maven-badges.herokuapp.com/maven-central/one.chest.ratpack/music-library/badge.svg
[maven-url]: https://maven-badges.herokuapp.com/maven-central/one.chest.ratpack/music-library
[coveralls-image]: https://coveralls.io/repos/github/DNAlchemist/music-library/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/DNAlchemist/music-library?branch=master[license-url]: https://github.com/DNAlchemist/music-library/blob/master/LICENSE
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat