{"action":"created","issue":{"url":"https://api.github.com/repos/tchoulihan/musicbrainz-tagger/issues/1","repository_url":"https://api.github.com/repos/tchoulihan/musicbrainz-tagger","labels_url":"https://api.github.com/repos/tchoulihan/musicbrainz-tagger/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tchoulihan/musicbrainz-tagger/issues/1/comments","events_url":"https://api.github.com/repos/tchoulihan/musicbrainz-tagger/issues/1/events","html_url":"https://github.com/tchoulihan/musicbrainz-tagger/issues/1","id":138786475,"number":1,"title":"Determine if song has been found in MusicBrainz","user":{"login":"corbs9","id":16562254,"avatar_url":"https://avatars.githubusercontent.com/u/16562254?v=3","gravatar_id":"","url":"https://api.github.com/users/corbs9","html_url":"https://github.com/corbs9","followers_url":"https://api.github.com/users/corbs9/followers","following_url":"https://api.github.com/users/corbs9/following{/other_user}","gists_url":"https://api.github.com/users/corbs9/gists{/gist_id}","starred_url":"https://api.github.com/users/corbs9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corbs9/subscriptions","organizations_url":"https://api.github.com/users/corbs9/orgs","repos_url":"https://api.github.com/users/corbs9/repos","events_url":"https://api.github.com/users/corbs9/events{/privacy}","received_events_url":"https://api.github.com/users/corbs9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-06T12:18:01Z","updated_at":"2016-03-06T15:23:53Z","closed_at":null,"body":"Hello!\r\n\r\nReally like your library, it takes away the work of integrating with MusicBrainz and allows me to also make use out of your Tools class which obtains idv3 tags. \r\n\r\nMy main problem, however, is the ability to easily identify if your library has located a track or not. To give you an example, here is my code I'm using within my application:\r\n\r\n`Song song = Song.fetchSong(new File(filePath));\r\n  try {\r\n    song.getArtist();\r\n  } catch (NullPointerException e) {\r\n    // can't find track information in musicbrainz, let's do it another way...\r\n    ID3v1 id3 = Tools.getId3v1Tag(new Mp3File(new File(filePath)));\r\n}`\r\n\r\nAs you can see, I'm relying on a NullPointerException being thrown on the call to getArtist() to determine if you've found a song or not. \r\n\r\nMay I request an addition? Could you either not create an instance of song and returning null, throwing a SongNotFoundException or providing a \"isFound()\" method which returns a boolean? If you're happy to, I could do the development and create a pull request?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/tchoulihan/musicbrainz-tagger/issues/comments/192913773","html_url":"https://github.com/tchoulihan/musicbrainz-tagger/issues/1#issuecomment-192913773","issue_url":"https://api.github.com/repos/tchoulihan/musicbrainz-tagger/issues/1","id":192913773,"user":{"login":"tchoulihan","id":930215,"avatar_url":"https://avatars.githubusercontent.com/u/930215?v=3","gravatar_id":"","url":"https://api.github.com/users/tchoulihan","html_url":"https://github.com/tchoulihan","followers_url":"https://api.github.com/users/tchoulihan/followers","following_url":"https://api.github.com/users/tchoulihan/following{/other_user}","gists_url":"https://api.github.com/users/tchoulihan/gists{/gist_id}","starred_url":"https://api.github.com/users/tchoulihan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchoulihan/subscriptions","organizations_url":"https://api.github.com/users/tchoulihan/orgs","repos_url":"https://api.github.com/users/tchoulihan/repos","events_url":"https://api.github.com/users/tchoulihan/events{/privacy}","received_events_url":"https://api.github.com/users/tchoulihan/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T15:23:53Z","updated_at":"2016-03-06T15:23:53Z","body":"Sure, I'll create a SongNotFoundException for this. "}}