hooloo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hooloo/genre.rb +2 -2
- data/lib/hooloo/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: 56502b7cff9ec9dfa46165d62ea6e73415e38a6b
|
4
|
+
data.tar.gz: 7cbf6ecf7c3deb3613a76ad49ea6df74873cd42a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad5e4de1bc3a9903a29f910cac2d4a99466cb3d821290b62ac60bf5a9033f5f1a0d2d5aff4c4c386c8837925eafe39ffb0137ee0bb9be2ef3fd5c4af2a513982
|
7
|
+
data.tar.gz: 1ab6415a5bb1ae5088b784b563d7daf477bab6e0be4efc6e5609cef30092c295268e4b87112922cacf105a906d2a0aaa416a2d4235895f88ef20ecff90f190ed
|
data/lib/hooloo/genre.rb
CHANGED
@@ -2,13 +2,13 @@ class Hooloo::Genre < Hooloo::MozartHash
|
|
2
2
|
def initialize(obj)
|
3
3
|
super
|
4
4
|
if obj.is_a? String
|
5
|
-
@obj = {canonical_name
|
5
|
+
@obj = {'canonical_name' => obj}
|
6
6
|
else
|
7
7
|
@obj = obj
|
8
8
|
end
|
9
9
|
end
|
10
10
|
def shows(args={items_per_page: 10, position: 0})
|
11
|
-
args.merge!({genre: canonical_name})
|
11
|
+
args.merge!({genre: canonical_name, sort: 'release_with_popularity'})
|
12
12
|
Hooloo.request('shows', args)['data'].map { |x| Hooloo::Show.new x['show'] }
|
13
13
|
end
|
14
14
|
# List all genres known to Hulu
|
data/lib/hooloo/version.rb
CHANGED