tvdb_party_v2 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f44d10e0f665845886f31e77ddd0638501160d7c
4
- data.tar.gz: 2bb4dd07048b3648e1d348193978b68c47bc44b3
3
+ metadata.gz: 3411dc50a899679cdc92fadcf746a2b5f34ff2e8
4
+ data.tar.gz: 4ad9ec550f69f51c877adca32f28ee70dfcd3dd8
5
5
  SHA512:
6
- metadata.gz: d8ada7b6d69bc5f0ba84f102a9c888c86b4ebf29c7d68b0ca70ab034fdb987b87a99a505347d70d76dcebee17378162f46176a301546cc385094ecbc51d19422
7
- data.tar.gz: b999e674d06864eaee4aea862b36da199e655044a45fa6a0e2f846961b11a3865b1e0363359967d2ac81a9fa7f5089454333001ffbc810d62b1cd9255828848c
6
+ metadata.gz: 73b93afce9b9aa089a2b317658f9320d4d012837106f62e0989da4f3b871524e053486210c463705bc8541e9b9c63de67548f3ddf9dfb07556d90b4eb76f5131
7
+ data.tar.gz: 33dc4353fd1017356f4bc00d7cdabe6c9aaafe7e583f5ad2cc6cf118a303ba513e9442056706e5487838fa9a70a4aa32c38a118cf893b9273d7821f6d8f99e1b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tvdb_party_v2 (0.1.0)
4
+ tvdb_party_v2 (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # TvdbPartyV2
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/tvdb_party_v2.svg)](https://badge.fury.io/rb/tvdb_party_v2) [![Dependency Status](https://beta.gemnasium.com/badges/github.com/davidpan/tvdb_party_v2.svg)](https://beta.gemnasium.com/projects/github.com/davidpan/tvdb_party_v2)
4
+
3
5
  Simple Ruby library to talk to thetvdb.com API v2
4
6
 
5
7
  # what is thetvdb.com?
@@ -85,25 +85,6 @@ module TvdbPartyV2
85
85
  end
86
86
 
87
87
 
88
- def get_all_episodes(series, page_id = 1)
89
- if page_id == 1
90
- url = "/series/#{series.id}/episodes"
91
- else
92
- pp url = "/series/#{series.id}/episodes?page=#{page_id}"
93
- end
94
- response = self.get(url)
95
- if response['links']['next'].nil?
96
- data = response["data"]
97
- else
98
- data << response["data"]
99
- get_all_episodes(series, self.language, response['links']['next'].to_s)
100
- end
101
-
102
- return [] unless data
103
- data.select! {|d| d["airedSeason"] > 0} #去除特殊季部分。
104
- data.map {|e| self.get_episode_by_id(e["id"])}
105
-
106
- end
107
88
 
108
89
  def get_actors(series)
109
90
  response = self.get("/series/#{series.id}/actors")
@@ -78,9 +78,6 @@ module TvdbPartyV2
78
78
  @seasons ||= client.get_seasons(self)
79
79
  end
80
80
 
81
- def episodes
82
- @episodes ||= client.get_all_episodes(self)
83
- end
84
81
 
85
82
  def actors
86
83
  @actors ||= client.get_actors(self)
@@ -1,3 +1,3 @@
1
1
  module TvdbPartyV2
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvdb_party_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Pan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2018-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -62,6 +62,7 @@ files:
62
62
  - lib/tvdb_party_v2/search.rb
63
63
  - lib/tvdb_party_v2/series.rb
64
64
  - lib/tvdb_party_v2/version.rb
65
+ - tvdb_party_v2-0.1.1.gem
65
66
  - tvdb_party_v2.gemspec
66
67
  homepage: https://github.com/davidpan/tvdb_party_v2
67
68
  licenses: