where_to 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/where_to/tvdb.rb +3 -3
- data/lib/where_to/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWI4YjlkZjYzNGRjNjEyNGYyNzhjMGVlYjE0Y2RkZmYyMWUzZDk4ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTQ3OTY3YzZjMzQ5OTJjNTBjNDIyYzk0M2JmMWMzNGFmZTY2NjlhYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTRjMDA0YWM2MDYyMzk3MDhhOTA2ZTNjODk2ZDA3Njk2ZGU2NWViYzkyMzc5
|
10
|
+
MDdkMTk3Y2Q1NDFhZjA0MDNmNDAyODJlNWU2MGNjODA4OWE0MzA4Nzc0MTlk
|
11
|
+
ZTBlYjU0ODhkM2FhYjg2M2NhNDk3NTI2NGJjNWJkMmY1NmFmYmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDYxMTcxOTc0ZDM0MzRmZDM1NzU0M2Q3ZjNjZDI4NWQ4NWZjM2E2OTVhMDc4
|
14
|
+
NjkzYjBiZjliYTM0OGZkZDFhYTc3NTMyYzFjM2Q0MmE4NmM2YTc0MTU1ZmZl
|
15
|
+
NTc4YTNkOGE3MzFkMTU0Y2I1NTY5ZTZjMzY0NTBjMDQ1Nzk4Y2Y=
|
data/lib/where_to/tvdb.rb
CHANGED
@@ -2,7 +2,7 @@ require 'tvdb_party'
|
|
2
2
|
|
3
3
|
module WhereTo
|
4
4
|
class TVDB
|
5
|
-
attr_accessor :series_title, :episode_number, :season, :episode_title, :season_airdate
|
5
|
+
attr_accessor :series_title, :episode_number, :season, :episode_title, :season_airdate, :series_id
|
6
6
|
attr_reader :api_key
|
7
7
|
|
8
8
|
def initialize(params = {})
|
@@ -13,8 +13,8 @@ module WhereTo
|
|
13
13
|
|
14
14
|
def lookup!
|
15
15
|
validate!
|
16
|
-
results = @db.search(series_title).first
|
17
|
-
series = @db.get_series_by_id results['seriesid']
|
16
|
+
results = @db.search(series_title).first unless series_id
|
17
|
+
series = @db.get_series_by_id (series_id || results['seriesid'])
|
18
18
|
episode = series.get_episode season, episode_number
|
19
19
|
@episode_title = episode.name
|
20
20
|
@season_airdate = episode.air_date.year
|
data/lib/where_to/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: where_to
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Toniazzo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|