peerflixrb 0.3.3 → 0.4.0

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: 62a159c6d4d5eeb8c0655472858865eb587ad1fb
4
- data.tar.gz: b6bfea95ac2bce1ff64e6d3af4fff4ceb6fbca2a
3
+ metadata.gz: c6bfdb5bcbdb1527015606cc4773e711ef704e85
4
+ data.tar.gz: b99f8dfec68f877917e4856099f087e785bf41f9
5
5
  SHA512:
6
- metadata.gz: 820c37a9c4296337b4ada0946ae5f8b459b7d90537ea7543329e3486e83cf49d368ebde596ea57e573ea0637133db7fe9f0218aae049884c43579033b59c1b15
7
- data.tar.gz: 39f71248f775ca2cb83897c9ad785d7f879134f788363ab7bcfd318fc0de81eb0d4aad115cc2b2cbfb58301233ab234076b8a99ae7df1c3ac1551d7bccc6a123
6
+ metadata.gz: 24482a1282f2d8907cac9b86f2bc9240298e01584ee81021b44796176ba9bf06b3305ccc97705302fdee93c16f1264fb6cf8c0a05f12ed6565419de2afad998c
7
+ data.tar.gz: b987b081bc33bdb1ba487226c2473a9fce2e5f946315c1c631f39c4609637bcc2dca3b0f1b67d6491b1183c07623832fc56a5177121c8944f1ad3fe9b391076a
data/bin/peerflixrb CHANGED
@@ -68,6 +68,13 @@ sub_file = if options[:find_subtitles]
68
68
  options[:subtitles]
69
69
  end
70
70
 
71
+ # Was there a problem with the subtitle?
72
+ if options[:find_subtitles] && sub_file.nil?
73
+ puts 'Do you want to continue? [Y/n]'
74
+ response = $stdin.gets.chomp.downcase
75
+ exit if response == 'n' || response == 'no'
76
+ end
77
+
71
78
  # Peerflix command build
72
79
  command = "peerflix '#{kat.magnet}'"
73
80
  command << " --subtitles '#{sub_file}'" if sub_file
@@ -1,3 +1,3 @@
1
1
  module Peerflixrb
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peerflixrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Marchante