V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
turing
V2EX  ›  Node.js

基于node 的 douban.fm 命令行版

  •  
  •   turing · 2013-08-02 02:44:10 +08:00 · 11127 次点击
    这是一个创建于 3918 天前的主题,其中的信息可能已经有所发展或是发生改变。
    看图:



    前些天为啥要写那个player呢。。就是为了这玩意。。但是因为player还有一些小问题,steam的停止还没处理好。但是不妨碍各位直接先听为快~

    使用很简单。。
    $ sudo npm install douban.fm -g

    然后
    $ douban.fm 上下选按回车就可以了

    Github项目地址:欢迎star & fork
    https://github.com/turingou/douban.fm
    第 1 条附言  ·  2013-08-02 13:47:28 +08:00
    这玩意目前因为player组件的问题,还有许多bug~欢迎各位把bug提交到这里:

    https://github.com/turingou/douban.fm/issues
    46 条回复    2015-02-22 16:30:39 +08:00
    coolicer
        1
    coolicer  
       2013-08-02 08:35:48 +08:00
    我前段时间回去听,发现有了广告。我现在用百度的随心听。
    tamamaxox
        2
    tamamaxox  
       2013-08-02 09:04:39 +08:00
    wow
    cam
        3
    cam  
       2013-08-02 09:31:51 +08:00   ❤️ 1
    Awesome, how about support Vi navigation: hjkl
    BeijingBaby
        4
    BeijingBaby  
       2013-08-02 09:37:02 +08:00
    豆瓣真心很垃圾,或者说不能按歌曲名搜索的都很垃圾。
    whuhacker
        5
    whuhacker  
       2013-08-02 10:21:45 +08:00   ❤️ 2
    @BeijingBaby 只能说你不是 douban.fm 所定位的用户
    你所想要的是在线音乐库,而豆瓣是音乐电台
    SR1
        6
    SR1  
       2013-08-02 10:27:50 +08:00
    wow! 看到私人兆赫这个选项,看起来还支持登录!好赞!!收藏的兆赫能不能也显示出来呢?
    chendahui007
        7
    chendahui007  
       2013-08-02 10:37:50 +08:00
    leofml
        8
    leofml  
       2013-08-02 10:48:41 +08:00
    不小心按了两次火车 结果 ....
    SR1
        9
    SR1  
       2013-08-02 10:55:25 +08:00
    ubuntu下显示node版本需要0.8+
    又升级不了,好遗憾
    subpo
        10
    subpo  
       2013-08-02 10:56:21 +08:00   ❤️ 1
    @BeijingBaby 你见过能搜索音乐的电台?
    richiefans
        11
    richiefans  
       2013-08-02 11:18:31 +08:00
    总是同时播放多首歌……
    BeijingBaby
        12
    BeijingBaby  
       2013-08-02 11:24:07 +08:00
    @subpo 没有见过,就是有时候会想听某首歌,没办法去百度或者腾讯音乐搜索了。
    blue5tar
        13
    blue5tar  
       2013-08-02 12:06:39 +08:00
    安装报错

    CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
    ../deps/mpg123/src/output/alsa.c:19:28: 致命错误: alsa/asoundlib.h:没有那个文件或目录
    编译中断。
    make: *** [Release/obj.target/output/deps/mpg123/src/output/alsa.o] 错误 1
    turing
        14
    turing  
    OP
       2013-08-02 13:46:34 +08:00
    @ all

    点两次是会重复播放的。。。还有很多bug~

    最近并发项目略多,我会慢慢把bugs补完滴~

    感谢各位支持呀!
    oumu
        15
    oumu  
       2013-08-02 13:58:38 +08:00   ❤️ 1
    希望能支持 last.fm 同步
    turing
        16
    turing  
    OP
       2013-08-02 14:59:05 +08:00
    @oumu https://github.com/turingou/last.fm 已开坑~ 等这个写完了fork一份过去~
    turing
        17
    turing  
    OP
       2013-08-02 16:27:11 +08:00
    @cam 已加入todo list
    DaniloSam
        18
    DaniloSam  
       2013-08-02 16:46:50 +08:00   ❤️ 1
    @BeijingBaby

    按您的逻辑所有电台都是垃圾了, 听个广播不能点歌这是神马垃圾体验垃圾产品!

    呵, 呵呵
    MaqicXu
        19
    MaqicXu  
       2013-08-02 18:43:40 +08:00
    楼主这阵子高产呀,赞一个~~~
    turing
        20
    turing  
    OP
       2013-08-03 00:57:19 +08:00
    @MaqicXu 都是前一阵子开坑的,最近刚算写完
    hit9
        21
    hit9  
       2013-08-03 09:44:20 +08:00
    赞一个!
    hfcorriez
        22
    hfcorriez  
       2013-08-04 12:05:51 +08:00
    很赞!!!
    paloalto
        23
    paloalto  
       2013-08-04 12:33:44 +08:00
    赞!
    subpo
        24
    subpo  
       2013-08-04 12:40:11 +08:00
    这个项目我非常感兴趣啊,做好了十分有用,已经fork,看看能不能帮到楼主什么
    ucwdan
        25
    ucwdan  
       2013-08-04 12:43:21 +08:00
    赞一个
    turing
        26
    turing  
    OP
       2013-08-04 23:00:40 +08:00
    @subpo
    @ucwdan
    @paloalto
    @hit9
    感谢楼上各位的支持,player 模块还有一些问题,这两天正在debug,欢迎继续关注哦~
    fanzeyi
        27
    fanzeyi  
       2013-08-04 23:12:03 +08:00
    @BeijingBaby 您一定没有买过专辑。
    xevan
        28
    xevan  
       2013-08-05 01:21:42 +08:00
    mac下不能安装啊??
    fanweixiao
        29
    fanweixiao  
       2013-08-05 12:19:46 +08:00
    @SR1 npm install -g n && n stable
    loveminds
        30
    loveminds  
       2013-08-11 17:03:16 +08:00
    @whuhacker 你要的是亦歌
    itfanr
        31
    itfanr  
       2013-08-12 19:55:36 +08:00
    请问node.js不是弄网页的吗?怎么也可以在本地听歌了?另,豆瓣的歌曲API怎么得到?
    itfanr
        32
    itfanr  
       2013-08-12 23:33:40 +08:00
    windows版怎么弄?我执行douban.fm不能运行。。。
    yunlzheng
        33
    yunlzheng  
       2013-08-13 14:38:36 +08:00
    请问在获取到频道下的歌曲列表以后,是如何播放的mp3呢? 我尝试直接在浏览器里面用返回的歌曲地址,但是没有反应的。
    homfen
        34
    homfen  
       2013-08-13 15:36:01 +08:00
    CentOS:configure error
    pazz7ven
        35
    pazz7ven  
       2013-08-14 11:20:52 +08:00
    turing
        36
    turing  
    OP
       2013-08-14 11:24:29 +08:00
    @pazz7ven speaker 这个模块编译不成功,这是unbuntu?

    linux下speaker依赖alsa,确认安装了这个?
    可以看下文档:https://github.com/TooTallNate/node-speaker
    pazz7ven
        37
    pazz7ven  
       2013-08-14 11:55:55 +08:00
    @turing 是ubuntu 安装了node-speaker 好了
    http://notepad.cc/jeehiwu32
    pazz7ven
        38
    pazz7ven  
       2013-08-14 12:06:44 +08:00
    设置密码不成功sudo doubanfm -m [email protected] password //

    出现 bash: !0: event not found
    turing
        39
    turing  
    OP
       2013-08-14 12:18:10 +08:00   ❤️ 1
    @pazz7ven cli命令是:douban.fm
    turing
        40
    turing  
    OP
       2013-08-14 12:18:54 +08:00
    @homfen centos上也是需要依赖alsa,看下文档: https://github.com/TooTallNate/node-speaker
    pazz7ven
        41
    pazz7ven  
       2013-08-14 12:24:30 +08:00
    @turing 我是说 设置密码 出现 bash: !0: event not found

    http://bcs.duapp.com/picstore/JGSBdHAWsv.png
    turing
        42
    turing  
    OP
       2013-08-14 12:51:25 +08:00
    @pazz7ven 这个略奇怪了,去开个issue吧,把报错复制一下加上
    https://github.com/turingou/douban.fm/issues?state=open
    ymcdull
        43
    ymcdull  
       2013-11-12 10:22:06 +08:00
    不错,收藏下
    turing
        44
    turing  
    OP
       2013-11-12 15:27:28 +08:00
    douban.fm 0.0.7 发布,现已支持下载歌曲到本地,下一首播放(播放时按n),播放暂停(播放时按backspace)等功能
    hahabrother
        45
    hahabrother  
       2014-04-11 00:31:14 +08:00
    楼主还管理这里吗?
    发现一个新问题,可以解决吗?
    https://github.com/turingou/douban.fm/issues/91
    withrock
        46
    withrock  
       2015-02-22 16:30:39 +08:00
    不行了,安装了好久,一直卡在安装node-speaker上,不玩了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4714 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 04:01 · PVG 12:01 · LAX 21:01 · JFK 00:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.