paradiso 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/paradiso.rb +5 -0
- data/lib/paradiso/base.rb +3 -1
- data/paradiso.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/lib/paradiso.rb
CHANGED
@@ -26,6 +26,7 @@ module Paradiso
|
|
26
26
|
:archive => false,
|
27
27
|
:ignore_endings => ['nfo', 'sfv', 'txt'],
|
28
28
|
:timestamp => false,
|
29
|
+
:autosubs => false,
|
29
30
|
}
|
30
31
|
|
31
32
|
class << self
|
@@ -89,6 +90,10 @@ module Paradiso
|
|
89
90
|
options[:screen] = screen
|
90
91
|
}
|
91
92
|
|
93
|
+
o.on("-S", "--autosubs", "Load automatic subs") {
|
94
|
+
options[:autosubs] = true
|
95
|
+
}
|
96
|
+
|
92
97
|
o.parse!
|
93
98
|
|
94
99
|
return options, args
|
data/lib/paradiso/base.rb
CHANGED
@@ -66,6 +66,8 @@ module Paradiso
|
|
66
66
|
|
67
67
|
str += ['-aspect', ratio]
|
68
68
|
str << "-fs" if @options[:fullscreen]
|
69
|
+
str << "-noautosub" unless @options[:autosubs]
|
70
|
+
str << "-nosub" unless @options[:autosubs]
|
69
71
|
|
70
72
|
# more platforms needs to be added
|
71
73
|
if RUBY_PLATFORM =~ /darwin10/
|
@@ -100,7 +102,7 @@ module Paradiso
|
|
100
102
|
|
101
103
|
def player file
|
102
104
|
return @options[:player] unless file =~ /(rar|r\d{2})$/
|
103
|
-
return "#{@options[:unrar]} p -inul #{file} | #{@options[:player]}"
|
105
|
+
return "#{@options[:unrar]} p -inul \"#{file}\" | #{@options[:player]}"
|
104
106
|
end
|
105
107
|
|
106
108
|
def timestamp
|
data/paradiso.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{paradiso}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Victor Bergoo"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-16}
|
13
13
|
s.default_executable = %q{paradiso}
|
14
14
|
s.description = %q{A simplified mplayer command line interface}
|
15
15
|
s.email = %q{victor.bergoo@gmail.com}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 3
|
9
|
+
version: 0.4.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Victor Bergoo
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-04-16 00:00:00 +02:00
|
18
18
|
default_executable: paradiso
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|