itunes_parser 1.1.1 → 1.1.2
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 +2 -2
- data/lib/itunes_parser/track.rb +2 -2
- data/lib/itunes_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b30ed94e3dac3afca961f06835eadc20129fcbf
|
4
|
+
data.tar.gz: d50f3867f190141974bb101364db50911d7babdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0578257bfc333cd36b77908d630495c2fdefed9133c836aa70a5733b28bd1b0175b38e777a706e093b80fdcb741d7e5a79b17505ddae37cd8aed15f34d8b061
|
7
|
+
data.tar.gz: 86a92aaf0179b72a64366e881e5ad5db99db8ca8c3258e21fe35c5f3c222f2a12096ad893bc248120ca06bb81a710fde6865d22025781e43c279bd5bb579f43a
|
@@ -5,7 +5,7 @@ module ItunesParser
|
|
5
5
|
# Returns Array of Hashes, each Hash is a playlist.
|
6
6
|
# Optional param `pretty` returns Array of Hashes with only IDs and Names.
|
7
7
|
def playlists(pretty: false)
|
8
|
-
_playlists = doc["Playlists"]
|
8
|
+
_playlists = self.doc["Playlists"]
|
9
9
|
|
10
10
|
unless pretty
|
11
11
|
_playlists
|
@@ -26,7 +26,7 @@ module ItunesParser
|
|
26
26
|
tracks = []
|
27
27
|
|
28
28
|
playlist(id)["Playlist Items"].each do |playlist_item|
|
29
|
-
tracks << self.track(
|
29
|
+
tracks << self.track(playlist_item["Track ID"])
|
30
30
|
end
|
31
31
|
|
32
32
|
tracks
|
data/lib/itunes_parser/track.rb
CHANGED
@@ -5,7 +5,7 @@ module ItunesParser
|
|
5
5
|
# Returns Hash { track_id => { <track_information> } }
|
6
6
|
# Optional param `pretty` returns Array of Hashes with only IDs and Names.
|
7
7
|
def tracks pretty: false
|
8
|
-
_tracks = doc["Tracks"]
|
8
|
+
_tracks = self.doc["Tracks"]
|
9
9
|
|
10
10
|
unless pretty
|
11
11
|
_tracks
|
@@ -17,7 +17,7 @@ module ItunesParser
|
|
17
17
|
# Shows one track.
|
18
18
|
# Returns Hash with track info.
|
19
19
|
def track(id)
|
20
|
-
tracks
|
20
|
+
tracks["#{id}"]
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|