{"action":"created","issue":{"url":"https://api.github.com/repos/shawnbot/itunes-data/issues/11","repository_url":"https://api.github.com/repos/shawnbot/itunes-data","labels_url":"https://api.github.com/repos/shawnbot/itunes-data/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/shawnbot/itunes-data/issues/11/comments","events_url":"https://api.github.com/repos/shawnbot/itunes-data/issues/11/events","html_url":"https://github.com/shawnbot/itunes-data/issues/11","id":208762823,"number":11,"title":"--format works with \">\" but it captures not valid data from stdout [Sierra]","user":{"login":"alundiak","id":2131633,"avatar_url":"https://avatars3.githubusercontent.com/u/2131633?v=4","gravatar_id":"","url":"https://api.github.com/users/alundiak","html_url":"https://github.com/alundiak","followers_url":"https://api.github.com/users/alundiak/followers","following_url":"https://api.github.com/users/alundiak/following{/other_user}","gists_url":"https://api.github.com/users/alundiak/gists{/gist_id}","starred_url":"https://api.github.com/users/alundiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alundiak/subscriptions","organizations_url":"https://api.github.com/users/alundiak/orgs","repos_url":"https://api.github.com/users/alundiak/repos","events_url":"https://api.github.com/users/alundiak/events{/privacy}","received_events_url":"https://api.github.com/users/alundiak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-20T01:11:21Z","updated_at":"2018-05-09T20:02:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When I execute  any commands using `--format` and `>` files created, but they all have at the beginning of file\r\n```\r\nitunes-data --tracks --format json ~/Music/iTunes/iTunes\\ Music\\ Library.xml > data/tracks2.json\r\nitunes-data --artists --format tsv ~/Music/iTunes/iTunes\\ Music\\ Library.xml > data/artists2.tsv\r\nitunes-data --artists --format csv ~/Music/iTunes/iTunes\\ Music\\ Library.xml > data/artists2.csv\r\n```\r\nNote: I don't use `--library` and `--playlists` due the errors described in issues: #6, #8, #10  \r\n\r\nNOT valid JSON then.\r\n```\r\nreading: /Users/alund/Music/iTunes/iTunes Music Library.xml (2195303 bytes)\r\n\u001B[6n[\r\n{\"Track ID\":1158,\"Size\":8575284,\"Total Time\":206376,\"Year\":2015,\r\n...\r\n```\r\n\r\nNOT valid TSV then.\r\n```tsv\r\nreading: /Users/alund/Music/iTunes/iTunes Music Library.xml (2195303 bytes)\r\n\u001B[6nName\tTrack Count\tPlay Count\r\n16 Bit Lolitas\t1\t3\r\n4 Strings\t1\t1\r\n\r\n...\r\n```\r\n\r\nNOT valid CSV then.\r\n```csv\r\nreading: /Users/alund/Music/iTunes/iTunes Music Library.xml (2195303 bytes)\r\n\u001B[6nName,Track Count,Play Count\r\n16 Bit Lolitas,1,3\r\n4 Strings,1,1\r\n\r\n...\r\n```\r\n\r\nPS. I'm on iTunes `v12.5.5.5`, macOS Sierra `v10.12.3`, node `v7.5.0`, npm `v4.1.2`\r\n`itunes-data` installed globally (`0.1.3`)\r\n\r\nсс/ @shawnbot "},"comment":{"url":"https://api.github.com/repos/shawnbot/itunes-data/issues/comments/387858229","html_url":"https://github.com/shawnbot/itunes-data/issues/11#issuecomment-387858229","issue_url":"https://api.github.com/repos/shawnbot/itunes-data/issues/11","id":387858229,"user":{"login":"alundiak","id":2131633,"avatar_url":"https://avatars3.githubusercontent.com/u/2131633?v=4","gravatar_id":"","url":"https://api.github.com/users/alundiak","html_url":"https://github.com/alundiak","followers_url":"https://api.github.com/users/alundiak/followers","following_url":"https://api.github.com/users/alundiak/following{/other_user}","gists_url":"https://api.github.com/users/alundiak/gists{/gist_id}","starred_url":"https://api.github.com/users/alundiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alundiak/subscriptions","organizations_url":"https://api.github.com/users/alundiak/orgs","repos_url":"https://api.github.com/users/alundiak/repos","events_url":"https://api.github.com/users/alundiak/events{/privacy}","received_events_url":"https://api.github.com/users/alundiak/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T20:02:10Z","updated_at":"2018-05-09T20:02:10Z","author_association":"CONTRIBUTOR","body":"@shawnbot up"}}
{"actor":{"display_login":"alundiak"}}