tvdb_party 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tvdb_party/search.rb +5 -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: 63db05de5ea7ea40880e3975db3301f5d1d34ed4
|
4
|
+
data.tar.gz: 449a96dece4182b1ae20e20be585c0b411fd4ca0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdfbc64868e000eed217efc3f01e983398dda44b002b1032c6880dbd38d876ebdfca2f09b37d7b51d60aee206638f215e696d787aa24d8ea13182b3c354dc5b8
|
7
|
+
data.tar.gz: 6527879891e2c08665fb3452d9c328e37eb5657c0c3debd99195a7867ebaddad103cac64b90422be4ec9678affb73f54c9354d8eceff8cbcfec554e746d3cc4e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.2
|
data/lib/tvdb_party/search.rb
CHANGED
@@ -59,7 +59,11 @@ module TvdbParty
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def get_all_episodes(series, language = self.language)
|
62
|
-
|
62
|
+
get_episodes_for_series_id(series.id, language)
|
63
|
+
end
|
64
|
+
|
65
|
+
def get_episodes_for_series_id(series_id, language = self.language)
|
66
|
+
response = self.class.get("/#{@api_key}/series/#{series_id}/all/#{language}.xml").parsed_response
|
63
67
|
return [] unless response["Data"] && response["Data"]["Episode"]
|
64
68
|
case response["Data"]["Episode"]
|
65
69
|
when Array
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tvdb_party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Maddox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thoughtbot-shoulda
|