media_info 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/media_info/base.rb +35 -7
- data/lib/media_info/stream.rb +2 -2
- data/lib/media_info/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6beba212c506de045e9cb91461a672be7ffa37e9
|
4
|
+
data.tar.gz: 61d7b9785fd8809a7802f2c1351fc29f703d94dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f67c1315b512fad29c0782ecc4c46fcd8adcf1c3ab0bd37b8e644a9b89084b2085ab1164e9ffcc0e5b3684338ffa19423334ac72635e3c96c0e773cf8cec6b4
|
7
|
+
data.tar.gz: c018f63727aeb738f1b1c7e7727d42a1d33ed0dbf4c598c2497f7d147f0a6b42860a6d324e8ffb342c5ad488a526023fc9b8cf0ecf87d8c30caa5e7dffb01ff0
|
data/lib/media_info/base.rb
CHANGED
@@ -42,34 +42,62 @@ module MediaInfo
|
|
42
42
|
stream?(:other)
|
43
43
|
end
|
44
44
|
|
45
|
-
def
|
45
|
+
def generals
|
46
46
|
search_stream(:general)
|
47
47
|
end
|
48
48
|
|
49
|
-
def
|
49
|
+
def videos
|
50
50
|
search_stream(:video)
|
51
51
|
end
|
52
52
|
|
53
|
-
def
|
53
|
+
def audios
|
54
54
|
search_stream(:audio)
|
55
55
|
end
|
56
56
|
|
57
|
-
def
|
57
|
+
def texts
|
58
58
|
search_stream(:text)
|
59
59
|
end
|
60
60
|
|
61
|
-
def
|
61
|
+
def images
|
62
62
|
search_stream(:image)
|
63
63
|
end
|
64
64
|
|
65
|
-
def
|
65
|
+
def menus
|
66
66
|
search_stream(:menu)
|
67
67
|
end
|
68
68
|
|
69
|
-
def
|
69
|
+
def others
|
70
70
|
search_stream(:other)
|
71
71
|
end
|
72
72
|
|
73
|
+
def general
|
74
|
+
generals.first
|
75
|
+
end
|
76
|
+
|
77
|
+
def video
|
78
|
+
videos.first
|
79
|
+
end
|
80
|
+
|
81
|
+
def audio
|
82
|
+
audios.first
|
83
|
+
end
|
84
|
+
|
85
|
+
def text
|
86
|
+
texts.first
|
87
|
+
end
|
88
|
+
|
89
|
+
def image
|
90
|
+
images.first
|
91
|
+
end
|
92
|
+
|
93
|
+
def menu
|
94
|
+
menus.first
|
95
|
+
end
|
96
|
+
|
97
|
+
def other
|
98
|
+
others.first
|
99
|
+
end
|
100
|
+
|
73
101
|
private
|
74
102
|
|
75
103
|
def stream?(type)
|
data/lib/media_info/stream.rb
CHANGED
@@ -53,7 +53,7 @@ module MediaInfo
|
|
53
53
|
|
54
54
|
def initialize(params = {})
|
55
55
|
@_others = {}
|
56
|
-
@
|
56
|
+
@_raw = params
|
57
57
|
|
58
58
|
params.each do |key, value|
|
59
59
|
unless respond_to?(key)
|
@@ -70,7 +70,7 @@ module MediaInfo
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def raw_attributes
|
73
|
-
@
|
73
|
+
@_raw
|
74
74
|
end
|
75
75
|
|
76
76
|
private
|
data/lib/media_info/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: media_info
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Radovan Smitala
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|