Android library for getting full information about music track by track title.
- Parsing of data from ITunes (last.fm, SoundCloud - coming soon)
- Opportunity using custom parsers
Gradle:
compile 'io.github.allockye:tracksearcher:1.0'
Maven:
<dependency>
<groupId>io.github.allockye</groupId>
<artifactId>tracksearcher</artifactId>
<version>1.0</version>
<type>pom</type>
</dependency>
Before calling search
you should to add at least one parser addParser
TrackSearcher trackSearcher = new TrackSearcher();
trackSearcher.addParser(new ITunesParser());
trackSearcher.search("Night Lovell", "Dark Light", new TrackSearcher.Callback() {
@Override
public void onSuccess(Track track) {
// some code
}
@Override
public void onFailure() {
// some code
}
});
Implement interface Parser
class CustomParser implements Parser {
@Override
public Track parse(String artistName, String trackName) {
// some code
return null;
}
}
Copyright 2016 Alexey Elisov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.