AnimeDL 0.2.1 → 0.2.2
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/anime_dl.gemspec +1 -1
- data/bin/anime-dl +1 -1
- data/lib/anime_dl/anime_heaven.rb +18 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fa027e66171a976c75538d3e6387ebac572c842
|
4
|
+
data.tar.gz: 8a8f16ca4cd2eac852e6cf1b9e82472f5ddbb8bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0996ccd5cc4883a119c9cb040ea02f1f2ffa8ab9320f693c88c616a574a62f6e8adaa9acafc37e4afd2ec1a309fa46fd877343b9677d808083e381d3a1888bf7'
|
7
|
+
data.tar.gz: 03b89d3cd92c14466a9840441b8824e74ff9dab2e1b5e86bab19b03b17acaa2a4792603553ad4cf2745b110ac22e83786c9939554ca8c32b7593598a95903a69
|
data/anime_dl.gemspec
CHANGED
data/bin/anime-dl
CHANGED
@@ -20,7 +20,10 @@ module AnimeDL
|
|
20
20
|
episode_links = getPageLinks(option, range)
|
21
21
|
episodes = []
|
22
22
|
|
23
|
-
|
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
|
|