radigo

package module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2018 License: MIT Imports: 16 Imported by: 0

README

radigo

Record the radiko.jp program.

godoc go report CircleCI

Docker Stars Docker Build Status Docker Automated build

Please refrain from using beyond the range of personal listening.
個人での視聴の目的以外で利用しないでください.

Installation

Docker images
$ docker pull yyoshiki41/radigo

You can launch a radigo container and exec radigo command.

$ docker run --name radigo -itd yyoshiki41/radigo
$ docker attach radigo
root@158057ab4c2a:/tmp$ radigo rec -id=LFR -s=20180114010000
Now downloading..
/
+------------+----------------------------------+
| STATION ID |              TITLE               |
+------------+----------------------------------+
| LFR        | オードリーのオールナイトニッポン |
+------------+----------------------------------+
| Completed!
/tmp/radigo/output/20180114010000-LFR.aac

Copy the output from a radigo container to the host (your local machine).

$ docker cp radigo:/tmp/radigo/output/20180114010000-LFR.aac ./
$ open ./20180114010000-LFR.aac
Building from source

・Go 1.7 or newer

$ go get github.com/yyoshiki41/radigo/cmd/radigo/...
# Configuration
$ make init
Requirements
Cleanup

Remove output files.

$ make clean

Usage

$ radigo help
usage: radigo [--version] [--help] <command> [<args>]

Available commands are:
    area           Get available station ids
    browse         Browse radiko.jp
    browse-live    Browse radiko.jp live
    rec            Record a radiko program
    rec-live       Record a live program
■ area
$ radigo area
Area ID: JP13
+-----------------------+---------------+
|         NAME          |  STATION ID   |
+-----------------------+---------------+
| TBSラジオ		| TBS		|
| 文化放送		| QRR		|
| ニッポン放送		| LFR		|
| ラジオNIKKEI第1	| RN1		|
| ラジオNIKKEI第2	| RN2		|
| InterFM897		| INT		|
| TOKYOFM		| FMT		|
| J-WAVE		| FMJ		|
| ラジオ日本		| JORF		|
| bayfm78		| BAYFM78	|
| NACK5			| NACK5		|
| FMヨコハマ		| YFM		|
| 放送大学		| HOUSOU-DAIGAKU|
| NHKラジオ第1(東京)	| JOAK		|
| NHKラジオ第2		| JOAB		|
| NHK-FM(東京)		| JOAK-FM	|
+-----------------------+---------------+
■ rec

Record the program using the timefree.

$ radigo rec -id=LFR -s=20161126010000
Now downloading..
+------------+---------------------------------+
| STATION ID |              TITLE              |
+------------+---------------------------------+
| LFR        |    オードリーのオールナイトニッポン |
+------------+---------------------------------+
Completed!
/tmp/radigo/output/20161126010000-LFR.mp3
■ rec-live

Record the live streaming program.

$ radigo rec-live -id=LFR -t=3600
Now downloading..
+------------+---------------+
| STATION ID | DURATION(SEC) |
+------------+---------------+
| LFR        |          3600 |
+------------+---------------+
Completed!
/tmp/radigo/output/20161205083547-LFR.mp3
■ browse / browse-live

Browse radiko.jp.

$ radigo browse -id=LFR -s=20161126010000
$ radigo browse-live -id=LFR
Optional
- working dir

Default: /tmp/radigo

If you want to change the working dir, set the environment variables.

  • RADIGO_HOME
- radiko premium

If use the area free, set the environment variables.

  • RADIKO_MAIL
  • RADIKO_PASSWORD

Known Issues

ERROR: Failed to concat aac files

(caused by the limitation of file descriptors maybe.)

Increase the number of file descriptors.

$ ulimit -n 16384

Resources

License


The MIT License

Author

Yoshiki Nakagawa

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ui cli.Ui

Functions

func AreaCommandFactory

func AreaCommandFactory() (cli.Command, error)

func BrowseCommandFactory

func BrowseCommandFactory() (cli.Command, error)

func BrowseLiveCommandFactory

func BrowseLiveCommandFactory() (cli.Command, error)

func RecCommandFactory

func RecCommandFactory() (cli.Command, error)

func RecLiveCommandFactory

func RecLiveCommandFactory() (cli.Command, error)

func Version

func Version() string

Version returns the app version.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL