Project

itunes_csv

0.01
No commit activity in last 3 years
No release in over 3 years
Export iTunes Library XML data to CSV
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

iTunes CSV

Export iTunes Library XML data to CSV

Why?

I wanted to do a clean-up of my library. iTunes allows you to copy and paste from iTunes into a spreadsheet, but this only includes visible columns. For non-visible columns such as location you need to parse the XML.

Installation

$ gem install itunes_csv

Usage

$ itunes_csv --help
Usage: itunes_csv [options]
    -f, --fields name,track,year     List of fields (default: name,artist)
    -p, --path PATH                  Path to iTunes XML file (default: ~/Music/iTunes/iTunes Music Library.xml)

Notes

May take a long time to run for a large iTunes library (10,000+ tracks)

Supported fields:

  • album
  • artist
  • audio?
  • audiobook?
  • composer
  • date_added
  • episode_number
  • genre
  • id
  • kind
  • last_played_at
  • location
  • location_path
  • movie?
  • number
  • persistent_id
  • play_count
  • played?
  • podcast?
  • season_number
  • total_time
  • tv_show?
  • unplayed?
  • video?
  • year

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request