torrent-finder 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/torrent-finder/command.rb +4 -3
- data/lib/torrent-finder/version.rb +1 -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: aa1665c13b98d2e611f12d6ebc65c4d7d6226b0a
|
4
|
+
data.tar.gz: 59427e7e9a25b08b388e5af8ca81ae38395b2320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c44968d1ca10fe568a6398e3f1190230ec65798782b44b0757ff51f310ee2face0ae75538fc532fff7716226ed32aae57ebce08420d3102a33e0eeba1ec6b1f
|
7
|
+
data.tar.gz: 36129c7c1938e85778565553fdf0f97f22888f2d96fd4552e64523ada2013fd9f56d12ffa97023e0c2eee4d1a8996cf67678d45a579beac1aa798c789e9e44ea
|
data/README.md
CHANGED
@@ -21,13 +21,13 @@ Or install it yourself as:
|
|
21
21
|
Search "Magi" on popgo, then launch peerflix with first result.
|
22
22
|
|
23
23
|
```
|
24
|
-
$ torrent-finder --site=popgo --
|
24
|
+
$ torrent-finder Magi --site=popgo --peerflix
|
25
25
|
```
|
26
26
|
|
27
|
-
Search "Carl Sagans Cosmos" on
|
27
|
+
Search "Carl Sagans Cosmos" on eztv, and list the result.
|
28
28
|
|
29
29
|
```
|
30
|
-
$ torrent-finder
|
30
|
+
$ torrent-finder "Carl Sagans Cosmos" --site=eztv
|
31
31
|
```
|
32
32
|
|
33
33
|
## Sites
|
@@ -4,19 +4,20 @@ module TorrentFinder
|
|
4
4
|
class Command < CLAide::Command
|
5
5
|
self.description = 'Find recent torrent or search specific torrent.'
|
6
6
|
self.command = 'torrent-find'
|
7
|
+
self.arguments = '[Search]'
|
7
8
|
|
8
9
|
def self.options
|
9
10
|
[
|
10
11
|
['--peerflix', 'launch peerflix with first matched result'],
|
11
|
-
['--site=site', 'use site, default popgo']
|
12
|
-
['--search=keywords', 'search keywords instead of find recent torrent']
|
12
|
+
['--site=site', 'use site, default popgo']
|
13
13
|
].concat(super)
|
14
14
|
end
|
15
15
|
|
16
16
|
def initialize(argv)
|
17
17
|
@use_peerflix = argv.flag?('peerflix', false)
|
18
18
|
@site = argv.option('site', "popgo")
|
19
|
-
@keywords = argv.
|
19
|
+
@keywords = argv.shift_argument
|
20
|
+
|
20
21
|
super
|
21
22
|
end
|
22
23
|
|