enklawa 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/enklawa/api/request.rb +1 -1
- data/lib/enklawa/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGNmODg4YTMyY2QxYWE5ZDcyMmZiNjU1MzBkM2ViOTVkYzQyMDczYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODA2ZTM0ZjljMzY3YTcwNWQyMGJhZWM2NjUxOTY1Yjc5YjhjZDFjYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWI2MWYzZGQ2ZGNlZjg4NzViZTEyNjA0YjUyODBmMjAyYTkzM2ZkZTMwOTY5
|
10
|
+
YTIwMDNhZDI0NjI5YWMwYTYzOGI4MGY3ODg2NzkyNDQ4MDRkMTJmNWRhMjBl
|
11
|
+
YzA2ZjUzMThjNmM0MmY0Y2E1Y2JiNDUzY2U5NThhYjFlNmNiYzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjk2ZWZiMTU4MTU3N2ZhYzEyYzFlNjk4NWUzNTViYzI0ZjlmN2Q2MzdkZGYx
|
14
|
+
MjZlYzhkYTk0NzI5NjFmYzEwNzE0NDhlMzUwMzU2MDE1MDc1NTAyZmY5MDc4
|
15
|
+
MGUwMjAwODc2MDNhNjY4NmViMTNkYzEwYjNkNDgxY2I2ZjllMWE=
|
data/lib/enklawa/api/request.rb
CHANGED
@@ -100,7 +100,7 @@ module Enklawa
|
|
100
100
|
temp_output_file_name = "/tmp/episode_metadata_#{episode.id}.txt"
|
101
101
|
`ffmpeg2theora #{episode.mp3} > #{temp_output_file_name} 2>&1` unless File.exists?(temp_output_file_name)
|
102
102
|
if open(temp_output_file_name).read.match(/.+Duration:\s+(\d{2}):(\d{2}):(\d{2}).+/i)
|
103
|
-
episode.duration = $3.to_i + ($2.to_i * 60) + ($
|
103
|
+
episode.duration = ($3.to_i * 1000) + ($2.to_i * 60 * 1000) + ($1.to_i * 3600 * 1000)
|
104
104
|
episode.check_if_image_exists_or_use_from_program(program)
|
105
105
|
program << episode
|
106
106
|
end
|
data/lib/enklawa/api/version.rb
CHANGED