peerflixrb 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/peerflixrb +9 -5
- data/lib/peerflixrb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f9efc79254c1de6ef38b40373844f6b2f4cfa82
|
|
4
|
+
data.tar.gz: 0af07f20cdea4805ef9a581a08e5d1ffb79c074b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
data/lib/peerflixrb/version.rb
CHANGED