ffmpeg_progress 1.0.1 → 1.0.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/lib/ffmpeg_progress.rb +3 -3
- 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: 90f77bff70d2e03a8fcef49490199f652ee1c78f
|
|
4
|
+
data.tar.gz: 45f4aff12498c91bfe9c3670ea0b53d51eb37285
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16c6f7766bb04438b666e84655916a8fc05b27107ec67ce2dcb1510e86e53b95eddbc2cf3da452dfb875b269d42c703f0adf37b1370b9a2f911acfa9bc8c96d5
|
|
7
|
+
data.tar.gz: 6560808c7430e8f3c2b868039c3a46170e4cd719384831a1324e749ae3beb771632b283658f8164ed0e708343b4f858a31d818f242d39db12dc7f3af76de50b3
|
data/lib/ffmpeg_progress.rb
CHANGED
|
@@ -3,7 +3,7 @@ require 'fileutils'
|
|
|
3
3
|
# {include:file:README.rdoc}
|
|
4
4
|
module FfmpegProgress
|
|
5
5
|
# The current software version.
|
|
6
|
-
VERSION = '1.0.
|
|
6
|
+
VERSION = '1.0.2'
|
|
7
7
|
|
|
8
8
|
# The date of the current version.
|
|
9
9
|
DATE = '2014-10-31'
|
|
@@ -186,7 +186,7 @@ module FfmpegProgress
|
|
|
186
186
|
sleep 1
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
puts "\r#{progress_bar(@theme[:finish_fg], @
|
|
189
|
+
puts "\r#{progress_bar(@theme[:finish_fg], @duration_ff)}"
|
|
190
190
|
rescue Interrupt
|
|
191
191
|
puts "\r#{progress_bar(@theme[:cancel_fg])}"
|
|
192
192
|
end
|
|
@@ -215,7 +215,7 @@ module FfmpegProgress
|
|
|
215
215
|
return nil unless File.exist?(LOG_FILE)
|
|
216
216
|
match = File.read(LOG_FILE).scan(/time=..:..:..\.../).last
|
|
217
217
|
|
|
218
|
-
return
|
|
218
|
+
return '00:00:00.00' unless match
|
|
219
219
|
match.delete('time=')
|
|
220
220
|
end
|
|
221
221
|
|