peerflixrb 1.0.0 → 1.0.1
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/lib/peerflixrb/commands.rb +2 -2
- data/lib/peerflixrb/link.rb +2 -2
- data/lib/peerflixrb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 541977a7d125abcf67ac35b820aa519a809c513e
|
|
4
|
+
data.tar.gz: 1e8db5bb3e31e481d5e9633aac73677761cb8ed8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b8023b8dd56a0574454e7ed016122ad489878ae89284f8f03e420dec162a8776651093632349554625d9590bf85eb42dc824c05d37908666926a089e4e40e33
|
|
7
|
+
data.tar.gz: 6bd1356c70ac152ce6b0c199f514a6af3baaa29d40c976de0f3fc4107efa739d10aa84fd53a36f6c48a27c63540e35f362858dbc897ca51420110972dc693521
|
data/lib/peerflixrb/commands.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Peerflixrb
|
|
|
12
12
|
|
|
13
13
|
def self.select_link(kat_search)
|
|
14
14
|
cli.choose(*kat_search.links) do |menu|
|
|
15
|
-
menu.header = 'Choose
|
|
15
|
+
menu.header = 'Choose file'
|
|
16
16
|
menu.default = '1'
|
|
17
17
|
menu.select_by = :index
|
|
18
18
|
end
|
|
@@ -37,7 +37,7 @@ module Peerflixrb
|
|
|
37
37
|
|
|
38
38
|
# Was there a problem with the subtitle?
|
|
39
39
|
if options[:find_subtitles] && sub_file.nil?
|
|
40
|
-
continue = cli.agree "Do you want to continue? #{'[y/n]'.yellow}".
|
|
40
|
+
continue = cli.agree "Do you want to continue? #{'[y/n]'.yellow}".blue
|
|
41
41
|
|
|
42
42
|
unless continue
|
|
43
43
|
# If :auto_select, exit program
|
data/lib/peerflixrb/link.rb
CHANGED
|
@@ -28,9 +28,9 @@ module Peerflixrb
|
|
|
28
28
|
private
|
|
29
29
|
|
|
30
30
|
def extract_hash
|
|
31
|
-
# Extract magnet properties to a Hash
|
|
31
|
+
# Extract magnet properties to a Hash and then parse the sha1 info hash
|
|
32
32
|
magnet_params = CGI.parse(URI.parse(magnet).query)
|
|
33
|
-
magnet_params['xt'].first.match(/[0-9A-
|
|
33
|
+
magnet_params['xt'].first.match(/[0-9A-Fa-f]{20,}/).to_s.downcase
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
end
|
data/lib/peerflixrb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: peerflixrb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Marchante
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-04-
|
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|