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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzlmNWMwZDA5NmU3NjJmZjEwNjAwZWUxYjBlYmIwMDgwOTU5ZmI5NA==
4
+ OWI4YjlkZjYzNGRjNjEyNGYyNzhjMGVlYjE0Y2RkZmYyMWUzZDk4ZQ==
5
5
  data.tar.gz: !binary |-
6
- MDUyYzg5N2U2ZDRmYjA0OWNiODMzNzEzYWE2NmQxODZhZjViZDFiNg==
6
+ OTQ3OTY3YzZjMzQ5OTJjNTBjNDIyYzk0M2JmMWMzNGFmZTY2NjlhYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDkxNWU4NjhiODM1Nzg2NWI5OWRlNDRjYWI0ZjU2ZTFmOGU0MDlhMjM3NDJi
10
- OTE0MDZkZWQ5YmUzOTM4YzgwZWM2MjUwYmQwMDBmMmQ4NWNmOWM4OGZiYmIy
11
- ZmE1OWJiYzAwZThiOTU0OTg0NjM1NjA2YjQ3NGNjY2M5ODQxZWY=
9
+ MTRjMDA0YWM2MDYyMzk3MDhhOTA2ZTNjODk2ZDA3Njk2ZGU2NWViYzkyMzc5
10
+ MDdkMTk3Y2Q1NDFhZjA0MDNmNDAyODJlNWU2MGNjODA4OWE0MzA4Nzc0MTlk
11
+ ZTBlYjU0ODhkM2FhYjg2M2NhNDk3NTI2NGJjNWJkMmY1NmFmYmU=
12
12
  data.tar.gz: !binary |-
13
- NmNlOGI1MWU2MGNmNDQwYjdhMTVhZTU3NDcyMjMwZjA0NWEyMTRjNGNjNTE3
14
- YmVkZDkwODA2N2ZjNTZmZDI0MWYxMmMxYTU4ZDUyYTBjZDNmMGQ1NDliZWUw
15
- NDBiM2EyMmNlNDNmMzBhZjY3N2IwODgwZGJlNDI3M2M5ZDgyYzc=
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
@@ -1,3 +1,3 @@
1
1
  module WhereTo
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
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.5
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-09 00:00:00.000000000 Z
11
+ date: 2015-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler