AnimeDL 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 0a8ec0f3c0c07289d6b5ccb88c37159018298a8e
4
- data.tar.gz: 704a9b7abe3e1082ba5669386cb1d5e96da530db
3
+ metadata.gz: 5fa027e66171a976c75538d3e6387ebac572c842
4
+ data.tar.gz: 8a8f16ca4cd2eac852e6cf1b9e82472f5ddbb8bb
5
5
  SHA512:
6
- metadata.gz: 2ec21755a6b8f42b013780f03d8d31b9bebc372cdfd26aa182770576a1c3e1870697d7381ab50e43d6e68e71363250f8a166b7b843400d7029f5d12db4208b5a
7
- data.tar.gz: 11d31f97aede04f5092d4894a79d39a854476f291c82813451f8cd876ea058b27ad36c5ff94b6b70b7603c172e252777a4274912e668eb82ca83e6ea3d70ef2c
6
+ metadata.gz: '0996ccd5cc4883a119c9cb040ea02f1f2ffa8ab9320f693c88c616a574a62f6e8adaa9acafc37e4afd2ec1a309fa46fd877343b9677d808083e381d3a1888bf7'
7
+ data.tar.gz: 03b89d3cd92c14466a9840441b8824e74ff9dab2e1b5e86bab19b03b17acaa2a4792603553ad4cf2745b110ac22e83786c9939554ca8c32b7593598a95903a69
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "AnimeDL"
3
- spec.version = "0.2.1"
3
+ spec.version = "0.2.2"
4
4
  spec.authors = ["Anirudh Sundar"]
5
5
  spec.email = "anirudhsundar@hotmail.com"
6
6
 
@@ -45,7 +45,7 @@ ARGV.options do |opts|
45
45
 
46
46
 
47
47
  opts.on( "-v", "--version", help_statements[:version]) do
48
- puts "AnimeDL: Version 0.2.1"
48
+ puts "AnimeDL: Version 0.2.2"
49
49
  exit
50
50
  end
51
51
 
@@ -20,7 +20,10 @@ module AnimeDL
20
20
  episode_links = getPageLinks(option, range)
21
21
  episodes = []
22
22
 
23
- puts "Fetching Links..." unless (output)
23
+ unless (output)
24
+ puts "Fetching Links..."
25
+ progress_bar = ProgressBar.create(:progress_mark => "\*", :length => 80, :total => episode_links.length)
26
+ end
24
27
 
25
28
  episode_links.each do |link|
26
29
  episode_page = @agent.get(link.attributes['href'].value)
@@ -38,9 +41,23 @@ module AnimeDL
38
41
 
39
42
  episode = Episode.new(episode_no, video_src)
40
43
  episodes << episode
44
+
45
+ # Progress Bar increment
46
+ begin
47
+ progress_bar.progress += 1 unless (output)
48
+ rescue
49
+ # Bypass InvalidProgressBar Error if raised
50
+ end
51
+
41
52
  puts episode.details if (output)
42
53
  end
43
54
 
55
+ # Progress bar finish
56
+ unless output
57
+ progress_bar.finish
58
+ puts "\n"
59
+ end
60
+
44
61
  return episodes
45
62
  end
46
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: AnimeDL
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anirudh Sundar