Revisions
-
ybenjo revised this gist
Mar 24, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ rtmpdump = '/usr/local/bin/rtmpdump' ffmpeg = '/usr/local/bin/ffmpeg' agqr_stream_url = 'rtmp://fms-base1.mitene.ad.jp/agqr/aandg2' current = File.dirname(File.expand_path(__FILE__)) -
ybenjo revised this gist
Oct 4, 2017 . 1 changed file with 7 additions and 27 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ - title: fgo wday: 火 time: '21:00' length: 60 - title: free_style wday: 土 time: '19:30' @@ -22,22 +22,14 @@ wday: 日 time: '21:30' length: 30 - title: igaitai wday: 金 time: '1:30' length: 30 - title: at_room wday: 月 time: '21:30' length: 30 - title: ageage wday: 水 time: '19:30' @@ -146,33 +138,25 @@ wday: 水 time: '1:30' length: 30 - title: pit_inn wday: 土 time: '18:30' length: 30 - title: himitsu_kichi wday: 日 time: '1:30' length: 30 - title: kuroshiro wday: 月 time: '19:30' length: 30 - title: toshitai wday: 火 time: '23:30' length: 30 - title: torima wday: 月 time: '19:00' length: 30 - title: it_kakumei wday: 月 @@ -182,11 +166,7 @@ wday: 火 time: '19:00' length: 30 - title: chika wday: 金 time: '21:00' length: 30 -
ybenjo revised this gist
Apr 2, 2017 . 1 changed file with 13 additions and 21 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -66,10 +66,6 @@ wday: 木 time: '2:00' length: 30 - title: adlib wday: 日 time: '1:00' @@ -86,10 +82,6 @@ wday: 金 time: '2:30' length: 30 - title: stay_gold wday: 木 time: '2:30' @@ -158,10 +150,6 @@ wday: 木 time: '19:30' length: 30 - title: pit_inn wday: 土 time: '18:30' @@ -170,14 +158,10 @@ wday: 日 time: '2:00' length: 30 - title: queenty wday: 月曜 time: '17:30' length: 30 - title: kuroshiro wday: 土 time: '17:00' @@ -197,4 +181,12 @@ - title: ayaradi wday: 火 time: '19:00' length: 30 - title: light wday: 金 time: '17:30' length: 30 - title: chika wday: 金 time: '21:00' length: 30 -
ybenjo revised this gist
Jan 2, 2017 . 1 changed file with 20 additions and 24 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,13 +2,13 @@ wday: 月 time: '22:00' length: 60 - title: fgo wday: 火 time: '21:00' length: 30 - title: free_style wday: 土 time: '19:30' length: 30 - title: suzakinishi wday: 水 @@ -22,13 +22,13 @@ wday: 日 time: '21:30' length: 30 - title: high wday: 日 time: '1:30' length: 30 - title: igaitai wday: 金 time: '1:30' length: 30 - title: dream_theater wday: 月 @@ -74,22 +74,14 @@ wday: 日 time: '1:00' length: 30 - title: uchiasa time: '21:30' wday: 金 length: 30 - title: 375 wday: 日 time: '0:30' length: 30 - title: note wday: 金 time: '2:30' @@ -146,10 +138,6 @@ wday: 金 time: '22:00' length: 60 - title: ohanashi wday: 土 time: '20:30' @@ -195,10 +183,18 @@ time: '17:00' length: 30 - title: toshitai wday: 火 time: '23:30' length: 30 - title: torima wday: 月 time: '19:30' length: 30 - title: it_kakumei wday: 月 time: '21:00' length: 30 - title: ayaradi wday: 火 time: '19:00' length: 30 -
ybenjo revised this gist
Sep 29, 2016 . 1 changed file with 3 additions and 7 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,10 +38,6 @@ wday: 木 time: '1:00' length: 30 - title: ageage wday: 水 time: '19:30' @@ -202,7 +198,7 @@ wday: 土 time: '19:30' length: 30 - title: torima wday: 金 time: '21:30' length: 30 -
ybenjo revised this gist
Apr 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ffmpeg = '/usr/local/bin/ffmpeg' agqr_stream_url = 'rtmp://fms-base1.mitene.ad.jp/agqr/aandg22' current = File.dirname(File.expand_path(__FILE__)) save_dir = "#{current}/../data/" Dir.mkdir(save_dir) if !File.exist?(save_dir) -
ybenjo revised this gist
Apr 2, 2016 . 1 changed file with 39 additions and 43 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ wday: 月 time: '21:30' length: 30 - title: daaaa wday: 木 time: '1:00' length: 30 @@ -44,15 +44,15 @@ length: 30 - title: ageage wday: 水 time: '19:30' length: 30 - title: dotai wday: 日 time: '3:00' length: 30 - title: tryangle wday: 火 time: '19:30' length: 30 - title: hitokana wday: 木 @@ -72,16 +72,12 @@ length: 30 - title: yumeiro wday: 土 time: '20:00' length: 30 - title: adlib wday: 日 time: '1:00' length: 30 - title: remake time: '1:30' wday: 火 @@ -99,13 +95,9 @@ time: '23:00' length: 30 - title: note wday: 金 time: '2:30' length: 30 - title: you_know_me wday: 日 time: '21:00' @@ -115,8 +107,8 @@ time: '2:30' length: 30 - title: doudemo_ii wday: 金 time: '19:30' length: 30 - title: five_stars_mon wday: 月 @@ -139,16 +131,16 @@ time: '20:00' length: 60 - title: sachika wday: 金 time: '2:00' length: 30 - title: ozanari wday: 土 time: '19:00' length: 30 - title: a_rie wday: 火 time: '23:00' length: 30 - title: agson wday: 土 @@ -171,33 +163,17 @@ time: '2:30' length: 30 - title: delicate_zone wday: 火 time: '1:00' length: 30 - title: ss_ch wday: 水 time: '1:30' length: 30 - title: mikassho wday: 木 time: '19:30' length: 30 - title: fgg wday: 木 time: '3:00' @@ -208,5 +184,25 @@ length: 30 - title: himitsu_kichi wday: 日 time: '2:00' length: 30 - title: queenty_sat wday: 土 time: '10:00' length: 60 - title: queenty_sun wday: 日 time: '10:00' length: 60 - title: kuroshiro wday: 土 time: '17:00' length: 30 - title: toshitai wday: 土 time: '19:30' length: 30 - title: oshiete wday: 日 time: '18:30' length: 30 -
ybenjo revised this gist
Oct 4, 2015 . 1 changed file with 0 additions and 4 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,10 +10,6 @@ wday: 火 time: '21:30' length: 30 - title: suzakinishi wday: 水 time: '1:00' -
ybenjo revised this gist
Oct 4, 2015 . 1 changed file with 58 additions and 38 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,3 @@ - title: mu_n wday: 月 time: '22:00' @@ -79,16 +59,16 @@ time: '0:30' length: 30 - title: hitokana wday: 木 time: '23:00' length: 30 - title: asumin wday: 月 time: '23:00' length: 60 - title: okaeri wday: 木 time: '22:00' length: 60 - title: ayahi wday: 木 @@ -130,7 +110,7 @@ wday: 月 time: '16:00' length: 60 - title: you_know_me wday: 日 time: '21:00' length: 30 @@ -144,24 +124,24 @@ length: 30 - title: five_stars_mon wday: 月 time: '20:00' length: 60 - title: five_stars_tue wday: 火 time: '20:00' length: 60 - title: five_stars_wed wday: 水 time: '20:00' length: 60 - title: five_stars_thu wday: 木 time: '20:00' length: 60 - title: five_stars_fri wday: 金 time: '20:00' length: 60 - title: sachika wday: 木 time: '23:30' @@ -179,9 +159,9 @@ time: '21:00' length: 120 - title: homerun wday: 金 time: '22:00' length: 60 - title: muratsubo wday: 月 time: '2:00' @@ -193,4 +173,44 @@ - title: animage wday: 水 time: '2:30' length: 30 - title: delicate_zone wday: 火 time: '0:00' length: 30 - title: ss_ch wday: 火 time: '1:00' length: 30 - title: mikassho wday: 火 time: '2:30' length: 30 - title: maison_de_mon wday: 月 time: '19:30' length: 30 - title: maison_de_wed wday: 水 time: '19:30' length: 30 - title: maison_de_thu wday: 木 time: '19:30' length: 30 - title: maison_de_fri wday: 金 time: '19:30' length: 30 - title: fgg wday: 木 time: '3:00' length: 30 - title: pit_inn wday: 土 time: '18:30' length: 30 - title: himitsu_kichi wday: 日 time: '2:30' length: 30 -
ybenjo revised this gist
Jul 22, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ffmpeg = '/usr/local/bin/ffmpeg' agqr_stream_url = 'rtmp://fms-base1.mitene.ad.jp/agqr/aandg22' current = __dir__ save_dir = "#{current}/../data/" Dir.mkdir(save_dir) if !File.exist?(save_dir) -
ybenjo revised this gist
Jul 8, 2015 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,6 +62,10 @@ wday: 木 time: '1:00' length: 30 - title: tls wday: 木 time: '1:30' length: 30 - title: ageage wday: 水 time: '0:00' -
ybenjo revised this gist
Apr 20, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -180,7 +180,7 @@ length: 30 - title: muratsubo wday: 月 time: '2:00' length: 30 - title: ohanashi wday: 土 -
ybenjo revised this gist
Apr 13, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ AGQR の放送を保存するスクリプト. 曜日は自分が読みやすいように漢字で指定している. **注意** `title` 要素にスペース,アンパサンド,クオート,括弧などを挟むと破滅する. ## その他 - fork 先では `config.yaml` に `movie : true` を指定しているが,ココロハルカスのように告知なく動画配信を行うラジオがあるため,自分は採用を見送った. -
ybenjo revised this gist
Apr 13, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ AGQR の放送を保存するスクリプト. 曜日は自分が読みやすいように漢字で指定している. ** 注意 : ** `title` 要素にスペース,アンパサンド,クオート,括弧などを挟むと破滅する. ## その他 - fork 先では `config.yaml` に `movie : true` を指定しているが,ココロハルカスのように告知なく動画配信を行うラジオがあるため,自分は採用を見送った. -
ybenjo revised this gist
Apr 13, 2015 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,19 +10,19 @@ AGQR の放送を保存するスクリプト. というバグが存在する. ## 使い方 適当なフォルダに `agqr.rb` を配置して crontab で `29,59 * * * sleep 55; ruby agqr.rb` と指定する. すると, `agqr.rb` を配置した一つ上のディレクトリに `data` ディレクトリを作り, - `data/flv` に `.flv` ファイル - `data/mp3` にエンコード済み `.mp3` ファイル を生成する.rtmpdump/ffmpeg の path は適当に書き換えてもらいたい. ## 必要なもの - Ruby 1.9.x or 2.x @@ -34,9 +34,9 @@ AGQR の放送を保存するスクリプト. ## config.yaml について 録音したい番組をここで指定する.そのうち `26:00` のような表記に対応したい. 曜日は自分が読みやすいように漢字で指定している. ** 注意 : `title` 要素にスペース,アンパサンド,クオート,括弧などを挟むと破滅する.** ## その他 - fork 先では `config.yaml` に `movie : true` を指定しているが,ココロハルカスのように告知なく動画配信を行うラジオがあるため,自分は採用を見送った. -
ybenjo revised this gist
Apr 13, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,6 +36,8 @@ AGQR の放送を保存するスクリプト. 日付は自分が読みやすいように漢字で指定している. **注意** `title` 要素にスペース,アンパサンド,クオート,括弧などを挟むと破滅する. ## その他 - fork 先では `config.yaml` に `movie : true` を指定しているが,ココロハルカスのように告知なく動画配信を行うラジオがあるため,自分は採用を見送った. - 比較的こまめに見なおしているが,コメントが英語日本語混ざっていて良くない. -
ybenjo revised this gist
Apr 13, 2015 . 2 changed files with 46 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,42 @@ # agqr.rb ## これは何 AGQR の放送を保存するスクリプト. ## fork 元との違いは [yagays / agqr.rb](https://gist.github.com/yagays/9898758) には - 31日まである月に翌日の指定が失敗する というバグが存在する. ## 使い方 適当なフォルダに `agqr.rb` を配置して `29,59 * * * sleep 55; ruby agqr.rb` と書く. すると, `agqr.rb` を配置した一つ上のディレクトリに `data` ディレクトリを作り, - `data/flv` に `.flv` ファイル - `data/mp3` にエンコード済み `.mp3` ファイル を生成する. ## 必要なもの - Ruby 1.9.x or 2.x - rtmpdump - ffmpeg - cron ## config.yaml について 録音したい番組をここで指定する.そのうち `26:00` のような表記に対応したい. 日付は自分が読みやすいように漢字で指定している. ## その他 - fork 先では `config.yaml` に `movie : true` を指定しているが,ココロハルカスのように告知なく動画配信を行うラジオがあるため,自分は採用を見送った. - 比較的こまめに見なおしているが,コメントが英語日本語混ざっていて良くない. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,10 @@ save_dir = "#{current}/../data/" Dir.mkdir(save_dir) if !File.exist?(save_dir) %w(mp3 flv).each do |dir| path = save_dir + 'dir' Dir.mkdir(path) if !File.exist?(path) end schedule_yaml = "#{current}/schedule.yaml" if !File.exist?(schedule_yaml) -
ybenjo revised this gist
Apr 13, 2015 . 1 changed file with 14 additions and 8 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ # usage: use with crontab # 29,59 * * * sleep 55; ruby agqr.rb # requirements # crontab, ruby >~ 1.9, ffmpeg, rtmpdump require 'yaml' @@ -16,19 +16,25 @@ save_dir = "#{current}/../data/" Dir.mkdir(save_dir) if !File.exist?(save_dir) schedule_yaml = "#{current}/schedule.yaml" if !File.exist?(schedule_yaml) puts "Config file (#{schedule_yaml}) is not found!" puts "Please make #{schedule_yaml}." exit 1 end today = Time.now # ruby 1.9.x でも動くために汚いけど書き換える # WDAY = %w(日 月 火 水 木 金 土).zip((0..6).to_a).to_h tmp = { } %w(日 月 火 水 木 金 土).each_with_index do |v, i| tmp[v] = i end WDAY = tmp schedule = YAML.load_file(schedule_yaml) schedule.each do |program| program_wday = WDAY[program['wday']] -
ybenjo revised this gist
Apr 6, 2015 . 1 changed file with 10 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -166,19 +166,27 @@ wday: 金 time: '0:30' length: 30 - title: a_rie wday: 金 time: '0:00' length: 30 - title: agson wday: 土 time: '21:00' length: 120 - title: homerun wday: 日 time: '2:30' length: 30 - title: muratsubo wday: 月 time: '2:30' length: 30 - title: ohanashi wday: 土 time: '20:30' length: 30 - title: animage wday: 水 time: '2:30' length: 30 -
ybenjo revised this gist
Apr 5, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ # usage: use with crontab # 29,59 * * * sleep 55; ruby agqr.rb # requirements # crontab, ruby >= 2.0, ffmpeg, rtmpdump require 'yaml' -
ybenjo revised this gist
Apr 5, 2015 . 2 changed files with 55 additions and 219 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,22 +1,22 @@ - title: ladygo_mon wday: 月 time: '20:00' length: 60 - title: ladygo_tue wday: 火 time: '20:00' length: 60 - title: ladygo_wed wday: 水 time: '20:00' length: 60 - title: ladygo_thu wday: 木 time: '20:00' length: 60 - title: ladygo_fri wday: 金 time: '20:00' length: 60 - title: mu_n wday: 月 @@ -51,8 +51,8 @@ time: '1:30' length: 30 - title: igaitai wday: 火 time: '23:30' length: 30 - title: dream_theater wday: 月 @@ -62,30 +62,18 @@ wday: 木 time: '1:00' length: 30 - title: ageage wday: 水 time: '0:00' length: 30 - title: dotai wday: 日 time: '3:00' length: 30 - title: tryangle wday: 水 time: '0:30' length: 30 - title: hitokana wday: 水 time: '21:00' @@ -100,7 +88,7 @@ length: 60 - title: ayahi wday: 木 time: '2:00' length: 30 - title: yumeiro wday: 土 @@ -110,10 +98,6 @@ wday: 日 time: '1:00' length: 30 - title: doyaradio time: '23:30' wday: 水 @@ -130,14 +114,6 @@ wday: 日 time: '0:30' length: 30 - title: wiwi wday: 火 time: '23:00' @@ -156,9 +132,53 @@ length: 30 - title: stay_gold wday: 木 time: '2:30' length: 30 - title: doudemo_ii wday: 土 time: '19:00' length: 30 - title: five_stars_mon wday: 月 time: '19:30' length: 30 - title: five_stars_tue wday: 火 time: '19:30' length: 30 - title: five_stars_wed wday: 水 time: '19:30' length: 30 - title: five_stars_thu wday: 木 time: '19:30' length: 30 - title: five_stars_fri wday: 金 time: '19:30' length: 30 - title: sachika wday: 木 time: '23:30' length: 30 - title: ozanari wday: 金 time: '0:30' length: 30 - title: rie wday: 金 time: '0:00' length: 30 - title: agson wday: 土 time: '21:00' length: 120 - title: home_run wday: 日 time: '2:30' length: 30 - title: muratsubo wday: 月 time: '2:30' length: 30 This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,184 +0,0 @@ -
ybenjo revised this gist
Apr 2, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -170,7 +170,7 @@ wday: 金 time: '0:00' length: 30 - title: agson wday: 土 time: '21:00' length: 120 -
ybenjo revised this gist
Mar 31, 2015 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,10 +36,10 @@ # appropriate wday h, m = program['time'].split(':').map(&:to_i) if h.zero? && m.zero? # check next day's wday # if today.wday is 6 (Sat), next_wday is 0 (Sun) next_wday = (today.wday + 1).modulo(7) is_appropriate_wday = program_wday == next_wday is_next_day_program = true else @@ -64,6 +64,8 @@ if is_appropriate_wday && is_appropriate_time title = (program['title'].to_s + '_' + today.strftime('%Y%m%d')).gsub(' ','') flv_path = "#{save_dir}/flv/#{title}.flv" # record stream rec_command = "#{rtmpdump} -r #{agqr_stream_url} --live -B #{length} -o #{flv_path} >/dev/null 2>&1" system rec_command -
ybenjo revised this gist
Mar 31, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ # usage: use with crontab # 29,59 * * * sleep 55; ruby agqr.rb # requirements # crontab, ruby => 2.0, ffmpeg, rtmpdump require 'yaml' -
ybenjo revised this gist
Mar 31, 2015 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,8 @@ # record AGQR # usage: use with crontab # 29,59 * * * sleep 55; ruby agqr.rb # requirements # ruby => 2.0, ffmpeg, rtmpdump require 'yaml' @@ -10,8 +12,17 @@ agqr_stream_url = 'rtmp://fms-base1.mitene.ad.jp/agqr/aandg22' current = File.dirname(File.expand_path(__FILE__)) save_dir = "#{current}/../data/" Dir.mkdir(save_dir) if !File.exist?(save_dir) schedule = "#{current}/schedule.yaml" if !File.exist?(schedule) puts "Config file (#{schedule}) is not found!" puts "Please make #{schedule}." exit 1 end today = Time.now WDAY = %w(日 月 火 水 木 金 土).zip((0..6).to_a).to_h -
ybenjo revised this gist
Mar 25, 2015 . 1 changed file with 0 additions and 4 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,10 +62,6 @@ wday: 木 time: '1:00' length: 30 - title: ageage wday: 水 time: '0:00' -
ybenjo revised this gist
Mar 24, 2015 . 1 changed file with 188 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,188 @@ - title: ladygo_mon wday: 月 time: '20:00' length: 60 - title: ladygo_tue wday: 火 time: '20:00' length: 60 - title: ladygo_wed wday: 水 time: '20:00' length: 60 - title: ladygo_thu wday: 木 time: '20:00' length: 60 - title: ladygo_fri wday: 金 time: '20:00' length: 60 - title: mu_n wday: 月 time: '22:00' length: 60 - title: it_kakumei wday: 火 time: '21:00' length: 30 - title: free_style wday: 火 time: '21:30' length: 30 - title: tyoroi wday: 水 time: '23:00' length: 30 - title: suzakinishi wday: 水 time: '1:00' length: 30 - title: kokoro wday: 日 time: '0:00' length: 30 - title: alamode wday: 日 time: '21:30' length: 30 - title: seisyun wday: 日 time: '1:30' length: 30 - title: igaitai wday: 火 time: '23:30' length: 30 - title: dream_theater wday: 月 time: '21:30' length: 30 - title: tsudaxtu wday: 木 time: '1:00' length: 30 - title: rxb wday: 金 time: '0:00' length: 30 - title: ageage wday: 水 time: '0:00' length: 30 - title: dotai wday: 日 time: '3:00' length: 30 - title: tryangle wday: 水 time: '0:30' length: 30 - title: hitokana wday: 水 time: '21:00' length: 60 - title: asumin wday: 月 time: '23:00' length: 60 - title: okaeri wday: 木 time: '22:30' length: 60 - title: ayahi wday: 木 time: '2:00' length: 30 - title: yumeiro wday: 土 time: '2:00' length: 30 - title: adlib wday: 日 time: '1:00' length: 30 - title: doyaradio time: '23:30' wday: 水 length: 30 - title: remake time: '1:30' wday: 火 length: 30 - title: uchiasa time: '21:00' wday: 月 length: 30 - title: 375 wday: 日 time: '0:30' length: 30 - title: wiwi wday: 火 time: '23:00' length: 30 - title: note wday: 火 time: '00:30' length: 30 - title: aniamo wday: 月 time: '16:00' length: 60 - title: hamidase wday: 日 time: '21:00' length: 30 - title: stay_gold wday: 木 time: '2:30' length: 30 - title: doudemo_ii wday: 土 time: '19:00' length: 30 - title: five_stars_mon wday: 月 time: '19:30' length: 30 - title: five_stars_tue wday: 火 time: '19:30' length: 30 - title: five_stars_wed wday: 水 time: '19:30' length: 30 - title: five_stars_thu wday: 木 time: '19:30' length: 30 - title: five_stars_fri wday: 金 time: '19:30' length: 30 - title: sachika wday: 木 time: '23:30' length: 30 - title: ozanari wday: 金 time: '0:30' length: 30 - title: rie wday: 金 time: '0:00' length: 30 - title: edison wday: 土 time: '21:00' length: 120 - title: home_run wday: 日 time: '2:30' length: 30 - title: muratsubo wday: 月 time: '2:30' length: 30 -
ybenjo revised this gist
Mar 4, 2015 . 1 changed file with 27 additions and 3 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,7 @@ length: 30 - title: free_style wday: 火 time: '21:30' length: 30 - title: tyoroi wday: 水 @@ -136,5 +136,29 @@ length: 30 - title: natural wday: 土 time: '18:00' length: 30 - title: wiwi wday: 火 time: '23:00' length: 30 - title: note wday: 火 time: '00:30' length: 30 - title: aniamo wday: 月 time: '16:00' length: 60 - title: hamidase wday: 日 time: '21:00' length: 30 - title: stay_gold wday: 木 time: '2:00' length: 30 - title: doudemo_ii wday: 土 time: '19:00' length: 30 -
ybenjo revised this gist
Feb 3, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # record AGQR # usage: use with crontab # 29,59 * * * sleep 55; ruby agqr.rb require 'yaml' -
ybenjo revised this gist
Feb 1, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ schedule = "#{current}/schedule.yaml" today = Time.now WDAY = %w(日 月 火 水 木 金 土).zip((0..6).to_a).to_h schedule_yaml = YAML.load_file(schedule) schedule_yaml.each do |program|
NewerOlder