Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created June 18, 2017 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ongaeshi/c83b2b33f56ac0b3926a3e4a6e20c3c0 to your computer and use it in GitHub Desktop.
Save ongaeshi/c83b2b33f56ac0b3926a3e4a6e20c3c0 to your computer and use it in GitHub Desktop.
require "radiko/radiko"
def c(channel, wday)
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