download_tv 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29c9837fef84c38a41063a8526525e12ce56c82bd8c8467289401dd8ae5453ba
4
- data.tar.gz: c448ce24115b3cb19dcc128c56a47cdee61d072994dafcfe5ab3d53b5d799109
3
+ metadata.gz: ae40682e4e3243ca753612350278b095a1274aed5fe1a9c40d89667ffe8c87be
4
+ data.tar.gz: 23c9b0a31757f175cdf2c2dd6da373c129f23bf1abcec7b48c1592639b72fda6
5
5
  SHA512:
6
- metadata.gz: a00092c93cc8076bf41d2a43a198f16be217ef251f74586387f92303e2db9baf0db8008f09271a7f086788578368dec2a881429136caf0d9c71d4fc2ff00be22
7
- data.tar.gz: b79f9e1625c27bd2c3f2c6c33b8092dcd0c1fb8c29a4e0f950619d0484d20d7fa175398e5d9e67cc6e8e7c268f137715e3c7e04e1c5c1e323c45d436a084eb4c
6
+ metadata.gz: 877d89743ee680c99cef11514a295a6a4e59e02b8fbdbb394a5889f9ab9f34237c3ddc4c11a085c26c7b442fa2b05b401bf6f61a1154fac93efe9d9dd6b81d30
7
+ data.tar.gz: 4a1ba85e231db16d52ea57d068a79271b15095ac82f49b906af65ff77a5edc6449bb0541fa7c284616025fe2284dacefbcff17258a40480e9492c3c0ebe0c140
@@ -16,6 +16,7 @@ module DownloadTV
16
16
  # Tries to download episodes in order for a given season,
17
17
  # until it can't find any
18
18
  def download_entire_season(show, season)
19
+ t = Torrent.new(@config.content[:grabber])
19
20
  season.insert(0, '0') if season.size == 1
20
21
  episode = "#{show} s#{season}e01"
21
22
  loop do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DownloadTV
4
- VERSION = '2.6.2'
4
+ VERSION = '2.6.3'
5
5
  end
@@ -44,17 +44,17 @@ describe DownloadTV::Downloader do
44
44
  end
45
45
  end
46
46
 
47
- describe 'the check_date method' do
48
- it 'exits the script when up to date' do
47
+ describe 'the date_to_check_from method' do
48
+ it 'returns the config date when offset is not given' do
49
49
  dl = DownloadTV::Downloader.new(date: Date.today, path: config_path)
50
- _(dl.check_date(0)).must_be_nil
50
+ _(dl.date_to_check_from(0)).must_equal Date.today
51
51
  end
52
52
 
53
53
  it 'uses the offset to adjust the date' do
54
54
  # Would exit with offset 0
55
55
  dl = DownloadTV::Downloader.new(date: Date.today, path: config_path)
56
56
 
57
- date = dl.check_date(1)
57
+ date = dl.date_to_check_from(1)
58
58
 
59
59
  _(date).must_equal(Date.today - 1)
60
60
  _(dl.config.content[:date]).must_equal Date.today
@@ -95,12 +95,12 @@ describe DownloadTV::Downloader do
95
95
 
96
96
  t.expect(:get_links, [], [show])
97
97
  dl = DownloadTV::Downloader.new(auto: true, path: config_path, pending: ['show 11'])
98
- _(dl.get_link(t, show, true)).must_equal ''
98
+ _(dl.get_link(t, show, save_pending: true)).must_equal ''
99
99
  _(dl.config.content[:pending]).must_equal ['show 11', show]
100
100
 
101
101
  t.expect(:get_links, [], [show])
102
102
  dl = DownloadTV::Downloader.new(auto: false, path: config_path, pending: [])
103
- _(dl.get_link(t, show, true)).must_equal ''
103
+ _(dl.get_link(t, show, save_pending: true)).must_equal ''
104
104
  _(dl.config.content[:pending]).must_include show
105
105
 
106
106
  t.verify
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: download_tv
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - guille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-20 00:00:00.000000000 Z
11
+ date: 2021-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler