download_tv 2.4.2 → 2.4.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: 83d2335a0899ebca1317a6e87704527e3c5912340abe3d60896a265814c4f227
4
- data.tar.gz: 8aa041c47f9568638cfadca686de6c67f8226bc53ad3fd49e2423fe75eb7e82a
3
+ metadata.gz: 0af99a48106973261cbe72aa5ba52b15282533b9c411ebfe23e1efbb8d847d9f
4
+ data.tar.gz: fb02bd92c7308fd9800e1b8c0029334e06ef9b296a5ceb47bd6369013e553ec6
5
5
  SHA512:
6
- metadata.gz: 87a114bec486a75dbdd4b5b124eceb0a8ccb66f60813119251030b9c74dc67d43e0845a24c10383bbae23010b0799490d65f1b2208e597125ded65d40ea6c704
7
- data.tar.gz: c31a61ae9ce28eb1142f35b1b97d70214fc621e6701a7d07c5a9183b6f564ef58e7f93319deb023ce3231645181b67d3db28512457a7f42e2d49e19cc93a75e5
6
+ metadata.gz: 97ecf94a1fcd2fc3efd1e748b998e54302d894b69822b4864e8659c467f020d4435b86662f9db0fa584f3b58a5e6fb03f7d95fefb77e293d78e69f6379b444de
7
+ data.tar.gz: 344c702622eebef1dbd4bdaddcbd06af281c465c4ee2d0723da5f0a4c551a9c8610eea852ffb49e0d610dbd03a7e85f1e8a5c6708e8891cca345f625e20891ad
@@ -22,11 +22,16 @@ module DownloadTV
22
22
  end
23
23
 
24
24
  def check_grabber_online
25
+ if @g_instances.empty?
26
+ warn 'There are no available grabbers.'
27
+ exit 1
28
+ end
25
29
  return if @g_instances.first.online?
26
30
  # We won't be using this grabber
27
31
  warn "Problem accessing #{@g_instances.first.class.name}"
28
32
  @tries -= 1
29
33
  @g_instances.shift # Removes first element
34
+ check_grabber_online
30
35
  end
31
36
 
32
37
  def change_grabbers
@@ -1,3 +1,3 @@
1
1
  module DownloadTV
2
- VERSION = '2.4.2'.freeze
2
+ VERSION = '2.4.3'.freeze
3
3
  end
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.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - guille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-14 00:00:00.000000000 Z
11
+ date: 2018-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler