itunes_csv 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Export iTunes Library XML data to CSV
4
4
 
5
+ # Why?
6
+
7
+ iTunes allows you to copy and paste from iTunes into a spreadsheet, but this only includes visible columns. For non-visible columns you need to extract from the XML.
8
+
5
9
  ## Installation
6
10
 
7
11
  $ gem install itunes_csv
@@ -10,13 +14,39 @@ Export iTunes Library XML data to CSV
10
14
 
11
15
  $ itunes_csv --help
12
16
  Usage: itunes_csv [options]
13
- -f, --fields name,track,year List of fields(default: name,artist)
17
+ -f, --fields name,track,year List of fields (default: name,artist)
14
18
  -p, --path PATH Path to iTunes XML file (default: ~/Music/iTunes/iTunes Music Library.xml)
15
19
 
16
20
  ## Notes
17
21
 
18
22
  May take a long time to run for a large iTunes library (10,000+ tracks)
19
23
 
24
+ Supported fields:
25
+
26
+ * album
27
+ * artist
28
+ * audio?
29
+ * audiobook?
30
+ * composer
31
+ * date_added
32
+ * episode_number
33
+ * genre
34
+ * id
35
+ * kind
36
+ * last_played_at
37
+ * movie?
38
+ * number
39
+ * persistent_id
40
+ * play_count
41
+ * played?
42
+ * podcast?
43
+ * season_number
44
+ * total_time
45
+ * tv_show?
46
+ * unplayed?
47
+ * video?
48
+ * year
49
+
20
50
  ## Contributing
21
51
 
22
52
  1. Fork it
data/itunes_csv.gemspec CHANGED
@@ -14,5 +14,5 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "itunes_csv"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = ItunesCsv::VERSION
17
- gem.add_runtime_dependency "itunes-library"
17
+ gem.add_runtime_dependency "andyw8-itunes-library"
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module ItunesCsv
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/itunes_csv.rb CHANGED
@@ -10,7 +10,7 @@ module ItunesCsv
10
10
 
11
11
  opts = OptionParser.new do |opts|
12
12
  options[:fields] = ['name', 'artist']
13
- opts.on( '-f', '--fields name,track,year', Array, "List of fields (default: #{options[:fields].join(',')})" ) do |list|
13
+ opts.on( '-f', '--fields a,b,c', Array, "List of fields (default: #{options[:fields].join(',')})" ) do |list|
14
14
  options[:fields] = list
15
15
  end
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itunes_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ cert_chain: []
12
12
  date: 2012-09-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: itunes-library
15
+ name: andyw8-itunes-library
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements: