Created
August 7, 2017 15:20
-
-
Save ongaeshi/56379074dc9d9364308f2766e196f222 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 characters
| # coding: utf-8 | |
| require "radiko/radiko" | |
| include Radiko | |
| def c(channel, wday) | |
| Radiko::Radiko.new(channel, last_wday(wday + 1, 1, 0)).astr(channel) | |
| end | |
| def ann(title, wday) | |
| print title, "\n", | |
| c("LFR", wday), " ", | |
| c("CBC", wday), " ", | |
| c("RNB", wday), " ", | |
| c("MRT", wday), " ", | |
| c("YBC", wday), " ", | |
| c("MRO", wday), " ", | |
| "\n\n" | |
| end | |
| ann("菅田将暉", 1) | |
| ann("星野源", 2) | |
| ann("AKB48", 3) | |
| ann("ナインティナイン岡村隆史", 4) | |
| ann("三代目J Soul Brothers 山下健二郎", 5) | |
| ann("オードリー", 6) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment