Low commit activity in last 3 years
No release in over a year
A Ruby library that makes it easy to dig around your iTunes Library metadata.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 13.0.6
>= 3.5.3

Runtime

>= 3.7.0
 Project Readme

iTunes Library

A Ruby library that makes it easy to dig around your iTunes Library metadata.

Forked because: https://github.com/josh/itunes-library/issues/5

Installation

gem install itunes-library

Usage

require 'itunes/library'
library = ITunes::Library.load("~/Music/iTunes/iTunes Library.xml")

library.playlists.map(&:name) #=> ["90's Music", "Classical Music", "Recently Played", ...]

library.music.tracks.select { |t| t.artist == "Foo Fighters" }.inject(0) { |n, t| n + t.play_count } #=> 4261

library.podcasts.tracks.select { |t| t.unplayed? }

License

Copyright (c) 2011 Joshua Peek.

Released under the MIT license. See LICENSE for details.