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 +4 -4
- data/lib/itunes_parser/playlist.rb +3 -1
- data/lib/itunes_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49e1f0ebe2d15be89309aaebfcb53c5b02acc47d
|
4
|
+
data.tar.gz: 3771b5e5a0407802d1ccac496aa0eed96db26574
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"])
|
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.
|
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-
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|