AnimeDL 0.1.2 → 0.1.4

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: ae72467ac0c208f3d5cf9c906ef0851aa5696ef5
4
- data.tar.gz: c951e243736a6c9b66e6d44d593f08ff91cd7433
3
+ metadata.gz: 3d0492b981a8fec13af761f4aad16fb1f56e4b2e
4
+ data.tar.gz: 4b4d0778dc4cbf907a3e38eaf0a552a79c21986b
5
5
  SHA512:
6
- metadata.gz: d5be7d5f452d48a8daf84e79519c5c2b01653ea169f85cb31052b6c87b5544102bba9ed472a70935c41d7a1093b6e8a70208c9faf33ef68e58251ca32c95841e
7
- data.tar.gz: 61569117a9d286942dac09f63211d3d76a67a7a6b6c8a2bf3f923a0599a7faa1d740165decbf5a2bc6a65f70f807a17fba4d8896c5f3f5f3c2e21907e078ef29
6
+ metadata.gz: df971dc3b3c6e81f716675a55a27e2f91248b75c4106f9c77d7f028e1684c7b20c6f437be3dab7307264640110e135323ad3b3901e88667f3d1554ee563a4652
7
+ data.tar.gz: 7d5976e3131a6f1b0ea9ec991f8df5d73e58f86fac65f5e8d2aa16b78c8175358cf5e9c3dd65951611cd929b1f3b5621691a765c6ac8d09ba230c3f6f147548b
data/README.md CHANGED
@@ -1,10 +1,23 @@
1
1
  # AnimeDL
2
2
 
3
+ <p align='center' style="width: 75%">
4
+ <img src='fmab_anime_dl.jpg' alt='FMAB Stone'>
5
+ </p>
6
+
7
+ An app used to download anime episodes or get links to video sources of episodes without having to open your browser or go through annoying pop-up ads.
8
+
3
9
  ## Installation
4
10
 
5
- Add this line to your application's Gemfile:
6
11
 
7
- ```
12
+ Install the application with:
13
+
14
+ $ gem install AnimeDL
15
+
16
+
17
+ <br>
18
+
19
+ To use this in a projext, add this line to your application's Gemfile:
20
+ ```ruby
8
21
  gem 'AnimeDL'
9
22
  ```
10
23
 
@@ -12,13 +25,67 @@ And then execute:
12
25
 
13
26
  $ bundle
14
27
 
15
- Or install it yourself as:
16
-
17
- $ gem install AnimeDL
18
28
 
19
29
  ## Usage
20
30
 
21
- TODO: Write usage instructions here
31
+ On running the command the program prompts the user for a search query and prints a list of search results.
32
+ The user can then choose a particular anime. Details for all episodes are scraped.
33
+ To select particular episodes call the app with the '-e' option.
34
+
35
+
36
+ #### Links:
37
+ To output links to a file, provide the path to a file as the last argument.
38
+ If argument is a directory, a new text file will be created in that directory.
39
+
40
+ #### Downloads:
41
+ To download videos to particular directory, specify the directory as the last argument.
42
+ If no directory is specified the videos are downloaded to ./anime_name/
43
+
44
+ ### Examples:
45
+ `$ anime_dl` - (outputs link urls on the terminal)
46
+ `$ anime_dl -f rel/path/to/filename.txt` - (outputs link urls to 'rel/path/to/filename.txt')
47
+ `$ anime_dl -o link -f rel/path/to/directory/` - (outputs link urls to 'rel/path/to/directory/anime\_name.txt')
48
+ `$ anime_dl -o download` - (downloads videos to './anime\_name/')
49
+ `$ anime_dl -o download -f .` - (downloads videos to './')
50
+ `$ anime_dl -o d -f /abs/path/to/directory` - (downloads videos to '/abs/path/to/directory/anime\_name/')
51
+ `$ anime_dl -o download -f /abs/path/to/directory/` - (downloads videos to '/abs/path/to/directory/anime\_name/')
52
+
53
+ ### Example App Usage:
54
+ ```
55
+ $ anime_dl -q
56
+ Enter Search Query: fullmetal alchemist b
57
+
58
+ 0. (Exit)
59
+ 1. Fullmetal Alchemist Brotherhood Dubbed | Hagane no Renkinjutsushi (2009) Dubbed
60
+ 2. Fullmetal Alchemist Brotherhood | Hagane no Renkinjutsushi (2009)
61
+ 3. (Enter new Search Query)
62
+
63
+ Choice: 4
64
+
65
+ (Empty response gets all episodes, '-1' exits)
66
+
67
+ Total number of Episodes - 64 (1-64)
68
+ Episodes: -1
69
+ ```
70
+
71
+
72
+ ### Specifying Episodes:
73
+ When the '-e' option is not provided, the app asks for 'Episodes' after retrieving the user's anime choice.
74
+ The user can provide induvidual space-seperated episodes.
75
+ The user can also provide multiple space-seperated ranges with each range having the format 'start-end'.
76
+ Below are a few examples (assuming anime has more than 18 episodes).
77
+ `Episodes: 2 4 5` - Retrieves details for episodes 2, 4 and 5
78
+ `Episodes: 4-8` - Retrieves details for episodes 4 to 8
79
+ `Episodes: 8-l` - Retrieves details for episodes 8 to the last episode
80
+ `Episodes: 2 9-13 18-l` - Retrieves details for episodes 2, 9 to 13 and 18 to end
81
+
82
+ ### Other options
83
+ Run `$ anime_dl -h` for the list of all options.
84
+
85
+ ## Limitations
86
+ The page being scraped from, "animeheaven.eu", only allows a certain number of page views per day (>150, <300).
87
+ Once that limit is exceeded, you will have to change networks or try again in 24 hours.
88
+
22
89
 
23
90
 
24
91
  ## License
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "AnimeDL"
3
- spec.version = "0.1.2"
3
+ spec.version = "0.1.4"
4
4
  spec.authors = ["Anirudh Sundar"]
5
5
  spec.email = "anirudhsundar@hotmail.com"
6
6
 
@@ -40,7 +40,7 @@ ARGV.options do |opts|
40
40
  options[:option] = option
41
41
  end
42
42
 
43
- opts.on("-e", "--episode", help_statements[:episode]) do
43
+ opts.on("-a", "--all", help_statements[:episode]) do
44
44
  options[:episode] = false
45
45
  end
46
46
 
@@ -60,13 +60,13 @@ ARGV.options do |opts|
60
60
 
61
61
  opts.separator ""
62
62
  opts.separator "Examples:"
63
- opts.separator %Q[ `anime_dl` (outputs link urls on the terminal)]
64
- opts.separator %Q[ `anime_dl -f rel/path/to/filename.txt` (outputs link urls to 'rel/path/to/filename.txt')]
65
- opts.separator %Q[ `anime_dl -o link -f rel/path/to/directory/` (outputs link urls to 'rel/path/to/directory/anime_name.txt')]
66
- opts.separator %Q[ `anime_dl -o download` (downloads videos to './anime_name/')]
67
- opts.separator %Q[ `anime_dl -o download -f .` (downloads videos to './')]
68
- opts.separator %Q[ `anime_dl -o d -f /abs/path/to/directory` (downloads videos to '/abs/path/to/directory/anime_name/')]
69
- opts.separator %Q[ `anime_dl -o download -f /abs/path/to/directory/` (downloads videos to '/abs/path/to/directory/anime_name/')]
63
+ opts.separator %Q[ `$ anime_dl` (outputs link urls on the terminal)]
64
+ opts.separator %Q[ `$ anime_dl -f rel/path/to/filename.txt` (outputs link urls to 'rel/path/to/filename.txt')]
65
+ opts.separator %Q[ `$ anime_dl -o link -f rel/path/to/directory/` (outputs link urls to 'rel/path/to/directory/anime_name.txt')]
66
+ opts.separator %Q[ `$ anime_dl -o download` (downloads videos to './anime_name/')]
67
+ opts.separator %Q[ `$ anime_dl -o download -f .` (downloads videos to './')]
68
+ opts.separator %Q[ `$ anime_dl -o d -f /abs/path/to/directory` (downloads videos to '/abs/path/to/directory/anime_name/')]
69
+ opts.separator %Q[ `$ anime_dl -o download -f /abs/path/to/directory/` (downloads videos to '/abs/path/to/directory/anime_name/')]
70
70
  opts.separator ""
71
71
 
72
72
  opts.separator "Example App Usage:"
@@ -95,7 +95,7 @@ ARGV.options do |opts|
95
95
  opts.separator ""
96
96
  opts.separator "NOTE: "
97
97
  opts.separator "The page being scraped from, \"animeheaven.eu\", only allows a certain number of page views per day (>150, <300)."
98
- opts.separator "Once that limit is exceed, you will have to change networks or try again in 24 hours."
98
+ opts.separator "Once that limit is exceeded, you will have to change networks or try again in 24 hours."
99
99
 
100
100
  begin
101
101
  opts.parse!
@@ -149,7 +149,7 @@ unless (options[:quiet])
149
149
  " `Episodes: 4-8` - Retrieves details for episodes 4 to 8\n" +
150
150
  " `Episodes: 8-l` - Retrieves details for episodes 8 to the last episode\n" +
151
151
  " `Episodes: 2 9-13 18-l` - Retrieves details for episodes 2, 9 to 13 and 18 to end\n" +
152
- "(Enter empty response to get all episodes, '-1' exits).\n\n"
152
+ "(Enter empty response to get all episodes, '-1' exits)\n\n"
153
153
  }
154
154
  else
155
155
  $user_prompts = {
Binary file
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.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anirudh Sundar
@@ -36,6 +36,7 @@ files:
36
36
  - README.md
37
37
  - anime_dl.gemspec
38
38
  - bin/anime_dl
39
+ - fmab_anime_dl.jpg
39
40
  - lib/anime_dl.rb
40
41
  - lib/anime_dl/anime_heaven.rb
41
42
  - lib/episode.rb