itunes-library 0 ruby Rubygems

Wrapper around iTunes Library.xml

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 © 2011 Joshua Peek.

Released under the MIT license. See LICENSE for details.

Related Repositories

iTunes-Graphs

iTunes-Graphs

A macOS app to visualise your iTunes library as graphs. ...

Last.fm-to-iTunes-Playcount-Sync

Last.fm-to-iTunes-Playcount-Sync

A small script to sync your iTunes play count with your Last.fm listening data. Good to use if you've had to rebuild your library. ...

itunes-client

itunes-client

PHP Library to query itunes feeds and api ...

discographer

discographer

Lists albums by artists in your iTunes library and highlights the ones you own ...

taifu

taifu

taifu brings YouTube sound to your iTunes library silently. ...


Top Contributors

josh andyw8 jasonrudolph adamlazz

Releases

-   v0.1.3 zip tar
-   v0.1.2 zip tar
-   v0.1.1 zip tar
-   v0.1.0 zip tar