yyoshiki41 / radigo

Record radiko 📻
GNU General Public License v3.0
210 stars 32 forks source link

How could i get the other area's STATION ID except Tokyo? #49

Closed micheal-death closed 5 years ago

micheal-death commented 5 years ago

For example, i want to record the radio station "FM802", but it seems that "FM802" is not in area JP-13? I have got a premium account, and the docker is deployed on AWS EC2 in Tokyo region.

yyoshiki41 commented 5 years ago

@micheal-death

~It is not the issue of this project.~

~If you want to get the other area's STATION ID except Tokyo,~ ~you should purchase the radiko premium (http://radiko.jp/rg/premium/).~

Use area free that is the feature only for premium user like below. https://github.com/yyoshiki41/radigo#--radiko-premium

Thanks!

yyoshiki41 commented 5 years ago

@micheal-death

e.g.

# set the environment variables.
# export RADIKO_MAIL="your-email" && export RADIKO_PASSWORD="your-password"
# "FM802" is below
$ radigo area -id=JP27 | grep FM802
| FM802                |            802 |
# record
$ radigo rec -area=JP27 -id=802 -s=20190101010000
micheal-death commented 5 years ago

@yyoshiki41 Great! It does work! Thank you!!

I have just run the docker like that:

$ docker run -it \
    -e RADIKO_MAIL="xxxxxx" \
    -e RADIKO_PASSWORD="xxxxxx" \
    -v "$(pwd)"/output:/output \
    yyoshiki41/radigo area -id=JP27

And the station table show up:

Area ID: JP27
+----------------------+----------------+
|         NAME         |   STATION ID   |
+----------------------+----------------+
| ABCラジオ            | ABC            |
| MBSラジオ            | MBS            |
| OBCラジオ大阪        | OBC            |
| FM COCOLO            | CCL            |
| FM802                |            802 |
| FM OH!               | FMO            |
| ラジオNIKKEI第1      | RN1            |
| ラジオNIKKEI第2      | RN2            |
| Kiss FM KOBE         | KISSFMKOBE     |
| ラジオ関西           | CRK            |
| 放送大学             | HOUSOU-DAIGAKU |
| NHKラジオ第1(大阪) | JOBK           |
| NHKラジオ第2         | JOAB           |
| NHK-FM(東京)       | JOAK-FM        |
+----------------------+----------------+
yyoshiki41 commented 5 years ago

cool 👍