itunes_parser 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b30ed94e3dac3afca961f06835eadc20129fcbf
4
- data.tar.gz: d50f3867f190141974bb101364db50911d7babdf
3
+ metadata.gz: 49e1f0ebe2d15be89309aaebfcb53c5b02acc47d
4
+ data.tar.gz: 3771b5e5a0407802d1ccac496aa0eed96db26574
5
5
  SHA512:
6
- metadata.gz: e0578257bfc333cd36b77908d630495c2fdefed9133c836aa70a5733b28bd1b0175b38e777a706e093b80fdcb741d7e5a79b17505ddae37cd8aed15f34d8b061
7
- data.tar.gz: 86a92aaf0179b72a64366e881e5ad5db99db8ca8c3258e21fe35c5f3c222f2a12096ad893bc248120ca06bb81a710fde6865d22025781e43c279bd5bb579f43a
6
+ metadata.gz: 10a5d7ce03fd054e2cdc3cd4486083b69ceda64476c0c64e215a088869399782130177b66d633c05b65daebd75655c88aaf34e5415be72860c74f303e730cac0
7
+ data.tar.gz: 77a073644e3e535d323bdec97e6e2a79721a2abf765cbbf2dfcff64813c5b9113bd6bb6ace6e547cb575315b588fe8830a7c33cb35f869da452fc4d02672175e
@@ -10,7 +10,7 @@ module ItunesParser
10
10
  unless pretty
11
11
  _playlists
12
12
  else
13
- _playlists.collect{|pl| {id: pl["Playlist ID"], name: pl["Name"] }}
13
+ _playlists.collect{|pl| { id: pl["Playlist ID"], name: pl["Name"] }}
14
14
  end
15
15
  end
16
16
 
@@ -24,6 +24,8 @@ module ItunesParser
24
24
  # Returns Array of Hashes, each Hash is a track.
25
25
  def playlist_tracks(id)
26
26
  tracks = []
27
+ items = playlist(id)["Playlist Items"]
28
+ return tracks if items.nil?
27
29
 
28
30
  playlist(id)["Playlist Items"].each do |playlist_item|
29
31
  tracks << self.track(playlist_item["Track ID"])
@@ -1,3 +1,3 @@
1
1
  module ItunesParser
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itunes_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Feña Agar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-28 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler