Package com.github.hakko.musiccabinet.parser.musicbrainz

Examples of com.github.hakko.musiccabinet.parser.musicbrainz.ArtistQueryParser


    List<MBArtist> mbArtists = new ArrayList<>();
    mbids = missingArtists.size();
    for (Artist artist : artistDao.getMissingArtists()) {
      try {
        StringUtil response = new StringUtil(artistQueryClient.get(artist.getName()));
        ArtistQueryParser parser = new ArtistQueryParserImpl(response.getInputStream());
        if (parser.getArtist() != null) {
          mbArtists.add(parser.getArtist());
          if (mbArtists.size() > 100) {
            artistDao.createArtists(mbArtists);
            mbArtists.clear();
          }
        }
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.parser.musicbrainz.ArtistQueryParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.