zhendi / doubanfm-cli Goto Github PK
View Code? Open in Web Editor NEWrun douban.fm on your shell
run douban.fm on your shell
CC@~ $ brew install glib Warning: glib-2.38.2 already installed
pip search glib
也搜不到
Traceback (most recent call last):
File "doubanfm.py", line 181, in
main()
File "doubanfm.py", line 167, in main
doubanfm = DoubanFM_CLI()
File "doubanfm.py", line 36, in init
self.player = gst.element_factory_make("playbin", "player")
gst.ElementNotFoundError: playbin
Get some warnings when start playing. Playing works anyway.
请输入您想听的频道数字:1
跳过输入n,加心输入f,删歌输入d,暂停输入p
正在播放: Railway Jam 歌手: Saint Etienne
** (doubanfm.py:5627): WARNING **: Command line `dbus-launch --autolaunch=92e74c0bd699cc0d17d48ad852cc73e2 --binar
y-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
** (doubanfm.py:5627): WARNING **: Command line `dbus-launch --autolaunch=92e74c0bd699cc0d17d48ad852cc73e2 --binar
y-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
** (doubanfm.py:5627): WARNING **: Command line `dbus-launch --autolaunch=92e74c0bd699cc0d17d48ad852cc73e2 --binar
y-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
** (doubanfm.py:5627): WARNING **: Command line `dbus-launch --autolaunch=92e74c0bd699cc0d17d48ad852cc73e2 --binar
y-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
** (doubanfm.py:5627): WARNING **: Command line `dbus-launch --autolaunch=92e74c0bd699cc0d17d48ad852cc73e2 --binar
y-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
每次听上几首就这样
fetching playlist ...
正在播放: Ritratti D'autore 歌手: Ennio Morricone
n
下一首...
正在播放: 不会改变 歌手: 谢天笑
Unhandled exception in thread started by
Traceback (most recent call last):
File "/bin/doubanfm", line 103, in start
loop.quit()
NameError: global name 'loop' is not defined
Fetching playlist ...
正在播放: I Stay In Love 歌手: Mariah Carey ♥
n
下一首...
正在播放: 秋光奏鸣曲 歌手: 萤火虫 ♥
n
下一首...
正在播放: Les Voisines 歌手: Renan Luce ♥
n
下一首...
正在播放: 流年 歌手: 王菲 ♥
Error: 资源未找到。 gstsouphttpsrc.c(924): gst_soup_http_src_finished_cb (): /GstPlayBin:player/GstSoupHTTPSrc:source:
libsoup status code 1
正在播放: 牛车上的阳光 歌手: 群星 ♥
n
下一首...
正在播放: Vu D'ici 歌手: Emilie Simon ♥Error: 资源未找到。 gstsouphttpsrc.c(924): gst_soup_http_src_finished_cb (): /GstPlayBin:player/GstSoupHTTPSrc:source:
libsoup status code 1
正在播放: 引子 歌手: 谭炎健 ♥
n
下一首...
正在播放: 分飞 歌手: 徐怀钰 ♥
Error: 资源未找到。 gstsouphttpsrc.c(924): gst_soup_http_src_finished_cb (): /GstPlayBin:player/GstSoupHTTPSrc:source:
libsoup status code 1
n正在播放: 小情歌 歌手: 苏打绿 ♥
下一首...
正在播放: A Thousand Kisses Deep 歌手: Leonard Cohen ♥
Error: 资源未找到。 gstsouphttpsrc.c(924): gst_soup_http_src_finished_cb (): /GstPlayBin:player/GstSoupHTTPSrc:source:
libsoup status code 1
正在播放: Moon River 歌手: The Innocence Mission ♥
n
下一首...
正在播放: 睡莲 A Water Lily 歌手: 贾鹏芳 ♥
Error: 资源未找到。 gstsouphttpsrc.c(924): gst_soup_http_src_finished_cb (): /GstPlayBin:player/GstSoupHTTPSrc:source:
libsoup status code 1
正在播放: Only Time 歌手: Enya ♥
n
下一首...
正在播放: 忘却的悲伤 歌手: Richard Clayderman ♥Error: 资源未找到。 gstsouphttpsrc.c(924): gst_soup_http_src_finished_cb (): /GstPlayBin:player/GstSoupHTTPSrc:source:
libsoup status code 1
正在播放: 君をのせて 歌手: 井上あずみ ♥
n
下一首...
正在播放: 爱江山更爱美人 歌手: 沈丹 ♥Error: 资源未找到。 gstsouphttpsrc.c(924): gst_soup_http_src_finished_cb (): /GstPlayBin:player/GstSoupHTTPSrc:source:
libsoup status code 1
正在播放: 如果没有你 歌手: 莫文蔚 ♥
声音正常
在Ubuntu中的终端中,听红心或者私人频道时候,会执行登录,需要输入验证码,由于看不到验证码,验证码不清楚该输入什么。
请输入您想听的频道数字:-3
跳过输入n,加心输入f,删歌输入d,暂停输入p,播放输入r,切换频道输入c
正在播放 红心 频道
正在登录...
验证码: ^C再见!
86:self.ch = 'http://douban.fm/j/mine/playlist?type=p&sid=&channel='+channel
{"r":1,"err":"valid sid is required"}
如果修改为
self.ch = 'http://douban.fm/j/mine/playlist?type=n&channel='+channel 则ok
登录的时候发生的,时间格式不能匹配,尝试了半天没有找到如何解决
cant login without identifying code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.