這個版本的命令行界面是參考了 Node.js版本的douban.fm製做的,向原做者致敬.終端界面設計的很是好看.python
感謝Cloverstd的修改,已經支持Mac OS X(>=V0.2.9)git
Linux/Mac OS Xgithub
其實Node.js版本已經很好了,功能齊全,可是我發如今個人zsh + tmux環境下顏色居然顯示不出來,感受很蛋疼.vim
$ sudo pip install douban.fm
須要mplayer播放器依賴,如未安裝:svg
Ubuntu:this
$ sudo apt-get install mplayer
OS X:spa
$ brew install mplayer
在終端下直接輸入命令行
$ douban.fm
第一次登錄須要輸入帳號,密碼,程序不會保留密碼,而是保存返回的token存儲在~/.douban_token.txt,下次登錄無需輸入密碼.設計
支持vim按鍵rest
移動 [j] --> 下 [k] --> 上 [g] --> 移到最頂 [G] --> 移到最底 音樂 [space] --> 播放 [w] --> 打開歌曲主頁 [n] --> 下一首 [r] --> 喜歡/取消喜歡 [b] --> 再也不播放 [q] --> 退出 [p] --> 暫停 [l] --> 單曲循環 音量(>=V0.2.9) [=] --> 增 [-] --> 減 [m] --> 靜音 歌詞(>=v0.2.9) [o] --> 顯示歌詞(Bug不少,先別用,沒有反應就是沒找到歌詞) [q] --> 退出歌詞
.doubanfm_config保存在了~/.doubanfm_config,根據須要能夠修改按鍵的映射
[key] UP = k # 上 DOWN = j # 下 TOP = g # 頂 BOTTOM = G # 底 OPENURL = w # 打開歌曲主頁 RATE = r # 標記喜歡/取消喜歡 NEXT = n # 下一首 BYE = b # 再也不播放 QUIT = q # 退出 PAUSE = p # 暫停 LOOP = l # 單曲循環 MUTE = m # 靜音
V0.2.10 滾動歌詞,單曲循環,暫停,靜音
V0.2.9 支持歌詞,支持Mac OS X
V0.2.8 增長config
Copyright (c) 2014 hackerxu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.