• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

NHKのネットラジオ「らじる☆らじる」を録音するためのシェルスクリプトを生成し、録音予約ジョブを登録する。こじまみつひろ氏作の radiru_rec2.py を改造したもの。


Commit MetaInfo

Revision6b9e414d6c9dbf90154e99f382142b8becb456f1 (tree)
Time2022-04-16 18:53:27
AuthorEHARA, Junichi <j-ehara@pop1...>
CommiterEHARA, Junichi

Log Message

Change sleep time before recording.

Change Summary

Incremental Difference

--- a/radiru_rec.py
+++ b/radiru_rec.py
@@ -203,7 +203,7 @@ def make_script(channel, duration, title):
203203 lines = []
204204 lines.append("#!/bin/sh")
205205 lines.append("file={0}/`date +\"%F-%H-%M\"`_{1}.m4a".format(musicdir, title))
206- lines.append("sleep 38s")
206+ lines.append("sleep 30s")
207207 lines.append("timeout {0}m ffmpeg -loglevel quiet -i {1} -codec:a copy $file".format(duration, m3u8url))
208208 lines.append("rm -f {0}\n".format(scriptname))
209209 script = "\n".join(lines)