peerflixrb 1.0.0 → 1.0.1

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: 7f72fe14a2b2bd54ce3302ac31e79d9a20f2dbc5
4
- data.tar.gz: a7f4ed3e378c3b3ca7aaf88565b2e9ccb2eac3fc
3
+ metadata.gz: 541977a7d125abcf67ac35b820aa519a809c513e
4
+ data.tar.gz: 1e8db5bb3e31e481d5e9633aac73677761cb8ed8
5
5
  SHA512:
6
- metadata.gz: 7234667bc7be33ab9aab85b7fc961d4dadadbb546795ee0a8c60f8ece60649790201fc28230bcb6a3358d13be10c464b2211d869701d1c3020d19afa7b2a1d90
7
- data.tar.gz: 40c64762f88130eb69a4746f4307f3293fd9aebd5889af6480ab932800711f59b4cd4f9f309812483491f2785789e34d5d1ffa7b0f48bca7a175179494a552eb
6
+ metadata.gz: 3b8023b8dd56a0574454e7ed016122ad489878ae89284f8f03e420dec162a8776651093632349554625d9590bf85eb42dc824c05d37908666926a089e4e40e33
7
+ data.tar.gz: 6bd1356c70ac152ce6b0c199f514a6af3baaa29d40c976de0f3fc4107efa739d10aa84fd53a36f6c48a27c63540e35f362858dbc897ca51420110972dc693521
@@ -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 which file'.yellow
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}".green
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
@@ -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-F]+/).to_s.downcase
33
+ magnet_params['xt'].first.match(/[0-9A-Fa-f]{20,}/).to_s.downcase
34
34
  end
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Peerflixrb
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
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.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-24 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri