mediainfo 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/mediainfo.rb +2 -2
- data/lib/mediainfo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d860215d4b6a33bdded468341853cfbb55d9989e49fb6989bd5c7e520eb6436d
|
4
|
+
data.tar.gz: a98e635cc11d7e8a61fcaddc2cdbea6608be43ee1df89373356917186eda91b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44169ad3b2e75e75448234621b90423360f40da11cfefe16ef1ca8d7ff61eab69bb022a85d0c8358cb9f7e6154d6b9287da572cbbc6ef8940e1a31c483d88e0a
|
7
|
+
data.tar.gz: 923793ff2ef28abae28bd6106e73f15b644dcb0f83c706db3e0c5b68ed4daea3e753e42733c63d78987d0f4de7a7ac28ea087ce4d44c966b60777399576afd3c
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ MediaInfo is a class wrapping [the mediainfo CLI](http://mediainfo.sourceforge.n
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
- Versions > 1.3.0 support S3 URLs. See rspec test for example
|
11
|
+
- Versions > 1.3.0 support S3 URLs. See rspec test for example.
|
12
12
|
|
13
13
|
#### Parsing raw XML
|
14
14
|
media_info = MediaInfo.from(File.open('iphone6+_video.mov.xml').read)
|
data/lib/mediainfo.rb
CHANGED
@@ -90,8 +90,8 @@ module MediaInfo
|
|
90
90
|
def self.run(input = nil)
|
91
91
|
raise ArgumentError, 'Your input cannot be blank.' if input.nil?
|
92
92
|
command = "#{location} '#{input}' --Output=XML"
|
93
|
-
raw_response, errors, status =
|
94
|
-
unless
|
93
|
+
raw_response, errors, status = Open3.capture3(command)
|
94
|
+
unless status.exitstatus == 0
|
95
95
|
raise ExecutionError, "Execution of '#{command}' failed: \n #{errors.red}"
|
96
96
|
end
|
97
97
|
return raw_response
|
data/lib/mediainfo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediainfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Thomas Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|