peerflixrb 0.3.1 → 0.3.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: 0c99cd60f17ec04636fc7ec99205b76ce455080a
4
- data.tar.gz: cae2db68501ad2fad0572793844e500260beedaa
3
+ metadata.gz: 0f9efc79254c1de6ef38b40373844f6b2f4cfa82
4
+ data.tar.gz: 0af07f20cdea4805ef9a581a08e5d1ffb79c074b
5
5
  SHA512:
6
- metadata.gz: 7a2c785d040f30b7a82d7ed3b3cbfa8c3cb19bf991628587a09c88cbaf033d3559be61261ba03e9a9ebce243dcfba1095b39ed8e5ae5ee904bd6b3449062f463
7
- data.tar.gz: e454f2d3bc7430c81ba164c2a0c5baf44d8cbefc4f8ca11250704ba90903190b115c6a783b674faba91e02cb71b8f0fce5e03b3cb19a8a9fe8432083db25d63d
6
+ metadata.gz: 8196435993d434000c2600bc1438b361e50491d3197bebab3925e7b9cd85072d3614eebd6697ad759d3df2e81444deddeb311378794bba68933d6b4e0284688e
7
+ data.tar.gz: 79700c98dcef2991436743274b6f98168bc082248868ff3d1581a16d8bce4a8eb8d454d70c88aa6a5ad362a8e3f42e068d424b971815e29ef01d69dba9168b98
data/README.md CHANGED
@@ -40,7 +40,7 @@ You can autoplay in VLC or MPlayer with the corresponding option (Default: VLC).
40
40
 
41
41
  $ peerflixrb --mplayer the big bang theory s09e16 hdtv
42
42
 
43
- Or you can just let it download without autoplaying with ```-n```.
43
+ Or you can just let it download without autoplaying with ```-n``` or ```--no-player```.
44
44
 
45
45
 
46
46
  ## Cache
data/bin/peerflixrb CHANGED
@@ -24,10 +24,6 @@ optparse = OptionParser.new do |opts|
24
24
  options[:video_player] = 'mplayer'
25
25
  end
26
26
 
27
- opts.on('-v', '--vlc', 'Autoplay in vlc* (Default)') do
28
- options[:video_player] = 'vlc'
29
- end
30
-
31
27
  opts.on('-t SUBTITLE_FILE', '--subtitles SUBTITLE_FILE', 'Use local subtitles') do |t|
32
28
  options[:subtitles] = t
33
29
  end
@@ -36,6 +32,11 @@ optparse = OptionParser.new do |opts|
36
32
  options[:language] = l
37
33
  end
38
34
 
35
+ opts.on('-v', '--version', 'Print version and exit') do
36
+ puts "Peerflixrb v#{Peerflixrb::VERSION}"
37
+ exit
38
+ end
39
+
39
40
  opts.on_tail('-h', '--help', 'Show this message') do
40
41
  puts opts
41
42
  puts '* Autoplay can take several seconds to start since it needs to wait for the first piece'
@@ -47,8 +48,11 @@ optparse.parse!
47
48
 
48
49
  # Join arguments to create the search term
49
50
  options[:search] = ARGV.join(' ')
51
+
52
+ # Show usage if no search
50
53
  if options[:search].empty?
51
- puts optparse # Show usage if no search
54
+ puts optparse
55
+ puts '* Autoplay can take several seconds to start since it needs to wait for the first piece'
52
56
  exit
53
57
  end
54
58
 
@@ -1,3 +1,3 @@
1
1
  module Peerflixrb
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.2'.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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Marchante