peerflixrb 2.0.0 → 2.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: f0cb0f583c7db883a7ef20d98d274ccb5a6ee2e1
4
- data.tar.gz: fa20922a85386110a328491309384981b382c684
3
+ metadata.gz: b53e691a60a0c46fbfb5528307823e65aa273595
4
+ data.tar.gz: 181e0b498f588c740345445e300114dfc649fb83
5
5
  SHA512:
6
- metadata.gz: 421edc242e606f3fbc959470b672fc46775773676199b7a4545d73f898b84581a9c1545cb3c9e86115459020d997cca2343c2091376df820cd9e629899d87e8e
7
- data.tar.gz: a4540f142630c2df0fb95703627224ee4c3ec4d735a4fe097fcbfac1e975d731d580bb25574471cf6e26f8349619149b1686614093f1be877d8d1720a8b81c71
6
+ metadata.gz: 2234f4f562ade553b2e402de4ffb62201e46951101aba4b803f5e6e13c31de513c9c1e1f2bac79e38bc486243646755f0f7ca39c0672a36b4e06a7ff809d5562
7
+ data.tar.gz: 6cb1f0b20c3381d0173fc4126b858b1da7b504b2062fce95109bd3bd926bb8cd74d36975fa5afc93a632069da5309eabce4ace25c32512ae10fe0a6ded95f9b0
data/exe/peerflixrb CHANGED
@@ -91,7 +91,7 @@ begin
91
91
 
92
92
  # Peerflix command build
93
93
  command = "peerflix '#{link.magnet}'"
94
- command << " --subtitles '#{sub_file}'" if sub_file
94
+ command << " --subtitles \"#{sub_file}\"" if sub_file
95
95
  command << " --#{options[:video_player]}" if options[:video_player]
96
96
  command << ' -- --fullscreen'
97
97
 
@@ -101,6 +101,8 @@ begin
101
101
  system command
102
102
  rescue Interrupt, EOFError
103
103
  cli.say 'Interrupted!'.red
104
+ rescue SocketError
105
+ cli.say "Couldn't perform action. Are you online?".red
104
106
  ensure
105
107
  # Cleaning up
106
108
  if link
@@ -1,3 +1,3 @@
1
1
  module Peerflixrb
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.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: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Marchante
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-08 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addic7ed_downloader