peerflixrb 1.2.0 → 1.2.2

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: 45281aea04544dbe603e3d57664b3dd50751cfb4
4
- data.tar.gz: 220decc8b23a320ab7f7bb9c115916ef74a44f37
3
+ metadata.gz: 3d5bfd2e6e48a703fab7ab9eff2e8c9d4960275b
4
+ data.tar.gz: bb4a9d85db39f8a1ee04f73e64d7ff0c3f1c261f
5
5
  SHA512:
6
- metadata.gz: b904ff8fd4e67fad846cb8436683bd24e88706026edb44cb6dc968538d481d69152892bad4b5d7fbdf0606e60ae635003fcd5ec3bfdcbdf664083e2768fa1a2b
7
- data.tar.gz: a6bdcfd31bfb69c23e1de166e7fac279f85d98e0c9fab83b255c3083b1121da9bb2a9f790fd397b21cf0f31973a6743056e0be64ad7920c37fc9d420c285a9e1
6
+ metadata.gz: b8410d0412899e51698842a27cdb90eb4fc0304d37dfbc1fa16f01783f3722a5c85185fa32a05e6e784337e1feab509eea1f719c9ebee74b834ac6113c0e26b9
7
+ data.tar.gz: fff747bbe765928ab2569aeeb6f307f9542e9d508e7b350a9da277e7c55115dba05340ce64c11216cd9f42040c476fe0d2c8f88cfe1312a85bf62616a24b8efe
data/bin/peerflixrb CHANGED
@@ -99,7 +99,7 @@ ensure
99
99
  if link
100
100
  cache_dir = "/tmp/torrent-stream/#{link.info_hash}"
101
101
  video_file = Dir["#{cache_dir}/**/*.{mkv,mp4,avi,wmv,mpg,flv,mov}"].first
102
- FileUtils.mv(sub_file, File.dirname(video_file)) if sub_file
102
+ FileUtils.mv(sub_file, File.dirname(video_file)) if sub_file && video_file
103
103
  cli.say "Your downloads will be in #{cache_dir.blue} #{'for 3 days :)'.yellow}".yellow
104
104
  end
105
105
  end
@@ -1,3 +1,3 @@
1
1
  module Peerflixrb
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.2'.freeze
3
3
  end
@@ -39,6 +39,8 @@ module Peerflixrb
39
39
  open(sub_file, 'w') do |f|
40
40
  f << io.read
41
41
  end
42
+
43
+ break # We found a subtitle file
42
44
  end
43
45
  end
44
46
 
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: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Marchante