download_tv 2.6.2 → 2.6.3
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 +4 -4
- data/lib/download_tv/downloader.rb +1 -0
- data/lib/download_tv/version.rb +1 -1
- data/test/downloader_test.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae40682e4e3243ca753612350278b095a1274aed5fe1a9c40d89667ffe8c87be
|
|
4
|
+
data.tar.gz: 23c9b0a31757f175cdf2c2dd6da373c129f23bf1abcec7b48c1592639b72fda6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/download_tv/version.rb
CHANGED
data/test/downloader_test.rb
CHANGED
|
@@ -44,17 +44,17 @@ describe DownloadTV::Downloader do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'the
|
|
48
|
-
it '
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
11
|
+
date: 2021-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|