hlspider 0.3.2 → 0.3.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.
data/bin/hlspider CHANGED
@@ -35,8 +35,13 @@ opts_parser = OptionParser.new do |opts|
35
35
  end
36
36
  opts_parser.parse!
37
37
 
38
- spider = HLSpider::Spider.new(options[:playlists])
39
-
38
+ if options[:playlists]
39
+ spider = HLSpider::Spider.new(options[:playlists])
40
+ else
41
+ puts "No playlists were specified."
42
+ exit(1)
43
+ end
44
+
40
45
  if options[:loop] == 0
41
46
  x = -1
42
47
  else
@@ -43,7 +43,7 @@ module HLSpider
43
43
  if responses[:callback].size == urls.size
44
44
  responses[:callback].collect { |k,v| v }
45
45
  else
46
- raise ConnectionError, "No all urls returned responses."
46
+ raise ConnectionError, "Not able to download all playlsts."
47
47
  end
48
48
  end
49
49
  end
@@ -41,7 +41,7 @@ module HLSpider
41
41
  #
42
42
  # Returns Array of Playlists
43
43
  def crawl!
44
- self.playlists = dive(@urls)
44
+ @playlists = dive(@urls)
45
45
  end
46
46
 
47
47
  # Public: Checks if playlists' segments are aligned.
@@ -1,3 +1,3 @@
1
1
  module HLSpider
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hlspider
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - brookemckim