Giter Site home page Giter Site logo

jingfm-cli's Introduction

Nodejs 命令行智能歌曲匹配播放Jing.fm歌曲

这是一个fork版本,该版本支持播放喜欢列表和添加歌曲到喜欢列表。

-l参数播放喜欢列表,播放音乐时输入l可添加音乐到jing.fm的喜欢列表。

jingfm-cli

Jing.fm 是一款开创性的音乐应用,它最大的特色就是首创地通过“描述”来找到自己喜欢的音乐。Jing.fm改变用户收听音乐的方式.例如你可以搜索 吃饱了撑着失恋了, 我和小伙伴都惊呆了,都是优秀的搜索条件。彻底解决不知道听啥的问题!

然后你又是一个 极客 , 你偏偏想用命令行来解决听歌的问题。

但是你太懒了,你自己也不知道听什么歌。。

“我可以根据我的心情或者音乐的种类来搜歌么?我很懒。。。”

当然可以,打开你牛逼的命令行 ,输入:

$ ./jingfm play -u xvfeng -p xvfeng -k rock

又或者你使用npm安装

npm install jingfm-cli -g

执行如何命令即可播放:

jingfm-cli play -u $username -p $password -k "keywords here"

小提示: 使用双引号支持多个汉字空格搜索

本分支添加了播放喜欢列表和标记喜欢歌曲的功能,命令行-l参数可用来播放喜欢的音乐列表,音乐播放中输入l可将该歌曲添加到你的喜欢列表。

mplayer控制台

因为操作是在命令行下,输入相应指令后需要按Enter键,例如暂停时,空格键 + Enter回车

基本操作: (可以通过mplayer --help查看帮助)

p or SPACE       暂停 (press any key to continue)
q or ESC         停止 stop playing and quit program
* or /           调整音量increase or decrease PCM volume

不知道怎么用?

试试这样:

$ ./jingfm --help
Usage: jingfm [options] [command]

Commands:

  play                   Try to play a song from Jing.fm

Options:

  -h, --help                 output usage information
  -V, --version              output the version number
  -u, --username <username>  Email
  -p, --password <password>  Password
  -k, --keywords <keywords>  Keywords

依赖

  • Jing.fm 帐号用于登陆
  • mplayer mac下可使用brew install mplayer安装,其他平台下同理

Liscense:

(WTFPL)

jingfm-cli's People

Contributors

chemzqm avatar fraserxu avatar

Watchers

 avatar  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.