Giter VIP home page Giter VIP logo

radish-queue's Introduction

radish-queue

Static Badge Static Badge Static Badge Static Badge Static Badge

NHKラジオ らじる★らじる / radiko / ListenRadio / 渋谷のラジオ で現在配信中の番組を保存するシェルスクリプトradi.shを改造した再生専用スクリプトradish-playを、さらにMPDのQueue登録専用に改造したシェルスクリプトです。

必要なもの

  • curl
  • libxml2 (xmllintのみ使用)
  • jq
  • MPD & mpc

使い方

*RaspberryPiでの使用を前提にしています。

muteなどで、RaspberryPiにMPDとmpcをインストール後、sshでアクセスしてください。

$ ssh [user]@[hostname].local

まず、xmllintが必要なので、libxml2-utilsをインストールします。

$ sudo apt install libxml2-utils

つぎに、radish-queue.shをダウンロードし、 権限を変更して実行可能にします。

$ wget https://raw.githubusercontent.com/mute-audio/radish-queue/master/radish-queue.sh
$ sudo chmod 755 radish-queue.sh

実行形式は以下の通り;

$ ./radish-queue.sh [options]
引数 必須 説明 備考
-t SITE TYPE 対象サービス nhk: NHK らじる★らじる
radiko: radiko
lisradi: ListenRadio
shiburadi: 渋谷のラジオ
-s STATION ID 放送局ID -l オプションで表示されるID
渋谷のラジオは指定不要
-i MAIL ラジコプレミアム ログインメールアドレス 環境変数 RADIKO_MAIL でも指定可能
-p PASSWORD ラジコプレミアム ログインパスワード 環境変数 RADIKO_PASSWORD でも指定可能
-l 放送局ID/名称表示 結果は300行以上になります、また取得は(割と)重いです

実行例

NHK らじる★らじる
$ ./radi.sh -t nhk -s tokyo-fm
radikoエリア内の局
$ ./radi.sh -t radiko -s INT
radikoエリア外の局 (ラジコプレミアム)
$ ./radi.sh -t radiko -s FMT -i "[email protected]" -p "password"
radikoエリア外の局 (ラジコプレミアム 環境変数からログイン情報設定)
$ export RADIKO_MAIL="[email protected]"
$ export RADIKO_PASSWORD="password"
$ ./radi.sh -t radiko -s FMJ
ListenRadio
$ ./radi.sh -t lisradi -s 30058
渋谷のラジオ
$ ./radi.sh -t shiburadi

このスクリプトはキューを登録するだけで再生はしません。実行後にMPDクライアントやMPDリモートアプリからキューに登録されていることを確認し再生してください。 また、Radikoサービスの場合、radish-queue実行後一定時間経過するとURLが無効になります。

Enjoy!

©2024 kitamura_design

radish-queue's People

Contributors

mute-audio avatar uru2 avatar jg1uaa avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.