where_to 0.9.1 → 0.9.2

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
- YzY0MmExOTdkYjBiMzk1OWQyMmNjNzkyZTk3YmU0MzdiZDMxM2YzNQ==
4
+ MDc2MDg4YmU3ZmVjMDY5ZTRkMzYwZDhiNTYzNzI3ZDU0YTA4YmFjZQ==
5
5
  data.tar.gz: !binary |-
6
- ZGEyMDc5NzhhNDliYzFhZDllZjA0NjkwODUyOThlNGM4NDJhZTAwYg==
6
+ YzkzODBiYTRmODBmZTkyM2NhMjM2MDEyYzAzM2UzNjY5MTdjYzBhNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGI0MmE3Y2VjNmI4OGE3NWVmMjI1YmM5ZGQyNDI2NGE5YTcyOGQzYTg5Y2Q5
10
- NTI3YTNiNTQwODg1YWI2YWExZjJhZjQ3Y2I2M2FiNTIyM2IzOTI5ODk3Yzkw
11
- YWMyZTRiNjFkYmIxNjU3MTMzY2RiNzg4ZjNiZTljM2E3NjM0ZTQ=
9
+ YjE1NjUyNzA3YzRkNjBhYWE1MTg1NjRlMjM4NzU2NjJjMThmMmQyODA3MzFh
10
+ NGYxZGUyODY4MGY2Nzc1ZjRkMjI5MDFkM2NiMWZkNjQ1ZDQ2ODg0ZWNjNjI3
11
+ NGI1Njc2MmU2YTZiMTE1YzRkY2U3NTgyMzRmOWI0NjE0ZGVjZDc=
12
12
  data.tar.gz: !binary |-
13
- ZGRhZGUxMzBiNjVlOGNjNmY2OWViNmIyZTZjOTJmN2RjYTcxZjUwM2EwZjA2
14
- NzdhNDJmMDBmNmNiYTMzMWU0MWM1NzNhYjQ3YTdlMmE3ZGFmZmYwNTc5OTE5
15
- YzFmYTQ5ZjJkNTYwZTIwZGRjZWM2ZWUyNWE1ZmQ5NzNjZTY1NzA=
13
+ ZmRiZjkyNmVjMmZmNDhiZTRlYTMzYjEzNTEzOGJmNWE4ODk2MzY5MzdjOTI4
14
+ ZWNlMDkyOWE4Yjc2NzhjNDNhNGIyNGU0ZWZiNzc5Njk4MmVhNjk5ZjMyMDQ1
15
+ ZmE5Y2I5MzBiZTIzYmMyYzUxYTY2MGIzODdmYzdiYTczNmJkZmQ=
data/README.md CHANGED
@@ -68,6 +68,21 @@ locator.episode_quality = '720p'
68
68
  locator.locate.filename # => game.of.thrones.S05E02.best.episode.ever.720p.mkv
69
69
  ```
70
70
 
71
+ ### TVDB Integration
72
+ You can also ask TVDB for episode information.
73
+ In your console, type:
74
+ `export TVDB_API_KEY='super secret api key'`
75
+
76
+ Then in your Ruby program:
77
+ ```ruby
78
+ locator = WhereTo::Locator.new
79
+ locator.series_title = 'Game of Thrones'
80
+ locator.season = 5
81
+ locator.episode_number = 3
82
+ locator.lookup!
83
+ locator.episode_title # 'High Sparrow'
84
+ ```
85
+
71
86
  ## Custom Formats
72
87
  Specify custom formats by modifying `format.yml`.
73
88
  The default is `"%series_title/Season %season_number (%season_airdate)/"`, but in theory any combination works.
@@ -1,3 +1,3 @@
1
1
  module WhereTo
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
data/lib/where_to.rb CHANGED
@@ -2,6 +2,7 @@ require 'where_to/version'
2
2
  require 'where_to/locator'
3
3
  require 'where_to/location'
4
4
  require 'where_to/configuration'
5
+ require 'where_to/tvdb'
5
6
 
6
7
  module WhereTo
7
8
  class << self
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.1
4
+ version: 0.9.2
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-08 00:00:00.000000000 Z
11
+ date: 2015-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler