where_to 0.9.3 → 0.9.4
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 +8 -8
- data/lib/where_to/tvdb.rb +5 -3
- data/lib/where_to/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2EyYjc5MzVhNGVkNGQ2MjVmODk1NzIwOGJkNWU3Yzg0NDY4ZDVjNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGUzZGRlOTJhZGEyZTcwYWQxZjMzZTI0ZmE5NmFkODQ4OTkxNGZhYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODlmY2I4Zjc4ZGI5YmZkNDI0NjJmMTc3ZmVmMjMxZjY3YjFmYWQ2MDM5ZjM5
|
10
|
+
NTBiZmY0YjU2OTRlOGRjMDBmNzMzYzgwZWY4ODdhNTk3MWI3YmJlYzM3OTAx
|
11
|
+
MzM4OGEyMzBiM2I2ODM0YzFkODA4YmYyMmEzYmQyODI1YWY0NjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
19
|
+
@episode_title = episode.name
|
20
|
+
@season_airdate = episode.air_date.year
|
20
21
|
|
21
22
|
updated = {}
|
22
|
-
updated[: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'
|
data/lib/where_to/version.rb
CHANGED