ripdiru 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ripdiru.rb +2 -2
- data/lib/ripdiru/version.rb +1 -1
- metadata +1 -1
data/lib/ripdiru.rb
CHANGED
@@ -93,7 +93,6 @@ module Ripdiru
|
|
93
93
|
puts "Ripping audio file to #{tempfile}"
|
94
94
|
|
95
95
|
command = %W(
|
96
|
-
timeout --foreground -s 2 #{duration}
|
97
96
|
ffmpeg -y -i #{mms_url} -vn
|
98
97
|
-loglevel error
|
99
98
|
-metadata author="NHK"
|
@@ -104,7 +103,8 @@ module Ripdiru
|
|
104
103
|
-metadata year="#{program.effective_date.year}"
|
105
104
|
-acodec libmp3lame -ar 44100 -ab #{bitrate} -ac 2
|
106
105
|
-id3v2_version 3
|
107
|
-
#{tempfile}
|
106
|
+
#{tempfile} &
|
107
|
+
sleep #{duration}; kill $!
|
108
108
|
)
|
109
109
|
|
110
110
|
system command.join(" ")
|
data/lib/ripdiru/version.rb
CHANGED