where_to 0.9.3 → 0.9.4

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
- NGU1YWFkNTIxNTJiYTkwMWZlNzVjMGZlMDBhODA1ZjVkOTIxMTU5Zg==
4
+ N2EyYjc5MzVhNGVkNGQ2MjVmODk1NzIwOGJkNWU3Yzg0NDY4ZDVjNg==
5
5
  data.tar.gz: !binary |-
6
- ZTY2YTkzMTQ2YjhmYWYyNmE0MWIyYjg2OTkxZjkxNzBhODYyNDhlZA==
6
+ NGUzZGRlOTJhZGEyZTcwYWQxZjMzZTI0ZmE5NmFkODQ4OTkxNGZhYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzZkYTc2Y2U4ZDI1ZjI0NTQ2MTNlZGI2MTZlZjJmNmVhOTdhZWU2ZTlmOWI2
10
- ZGI1YjJjMGQxNGJlODYwN2Q1NWY1ZjlmOWEzMGFhZjIyZDJmNTAwNDJlOGQ1
11
- ZDM0NmE4NGRjMTA2MmE1YTBhOGI0OWM5ZGYyMTA5OTMxOTliZmQ=
9
+ ODlmY2I4Zjc4ZGI5YmZkNDI0NjJmMTc3ZmVmMjMxZjY3YjFmYWQ2MDM5ZjM5
10
+ NTBiZmY0YjU2OTRlOGRjMDBmNzMzYzgwZWY4ODdhNTk3MWI3YmJlYzM3OTAx
11
+ MzM4OGEyMzBiM2I2ODM0YzFkODA4YmYyMmEzYmQyODI1YWY0NjA=
12
12
  data.tar.gz: !binary |-
13
- NmYxN2IyOWYwNDJkYTY4ZjRlMTVmZjM3NjRiYTE4ZWFlYjUxZDA3ODNhZjBm
14
- YzkxYzM2ZDIxODYxOWNhNzU4YjNlNjg1ZGVjMzMwNTVmZmE4NjQ4OTM3ZTQw
15
- ZTA3OGJiYzdiYTExMmJmYmZjZDI2MWMxMWZkYTgxZDc0MjRjNzE=
13
+ MmU3NzAxZjJkOWY3MDUzODkyMjczNGZjMTFkYmYzY2RhZWJlYjIxMGVlNDEx
14
+ Y2RlYzc0MTgzNmI2NGM5NGEzZDM1NjBlZGE1YjgzZGMzZWZlYzdhNjFjM2Rk
15
+ YTRhYzE4NjA3NTYzZjExYWEwZDI0ODlhZGNhYjU0MWQ0ZDhiNDQ=
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
5
+ attr_accessor :series_title, :episode_number, :season, :episode_title, :season_airdate
6
6
  attr_reader :api_key
7
7
 
8
8
  def initialize(params = {})
@@ -16,10 +16,12 @@ module WhereTo
16
16
  results = @db.search(series_title).first
17
17
  series = @db.get_series_by_id results['seriesid']
18
18
  episode = series.get_episode season, episode_number
19
- @episode_title = episode.name
19
+ @episode_title = episode.name
20
+ @season_airdate = episode.air_date.year
20
21
 
21
22
  updated = {}
22
- updated[:episode_title] = episode_title
23
+ updated[:episode_title] = episode_title
24
+ updated[:season_airdate] = season_airdate
23
25
  updated
24
26
  rescue URI::InvalidURIError
25
27
  raise 'You need to configure your TVDB API key before looking up episode information'
@@ -1,3 +1,3 @@
1
1
  module WhereTo
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: where_to
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Toniazzo