V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
turing
V2EX  ›  Node.js

基于node 的 douban.fm 命令行版

  •  
  •   turing · Aug 2, 2013 · 12279 views
    This topic created in 4652 days ago, the information mentioned may be changed or developed.
    看图:



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

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

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

    Github项目地址:欢迎star & fork
    https://github.com/turingou/douban.fm
    Supplement 1  ·  Aug 2, 2013
    这玩意目前因为player组件的问题,还有许多bug~欢迎各位把bug提交到这里:

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

    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
       Aug 2, 2013
    @ all

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

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

    感谢各位支持呀!
    oumu
        15
    oumu  
       Aug 2, 2013   ❤️ 1
    希望能支持 last.fm 同步
    turing
        16
    turing  
    OP
       Aug 2, 2013
    @oumu https://github.com/turingou/last.fm 已开坑~ 等这个写完了fork一份过去~
    turing
        17
    turing  
    OP
       Aug 2, 2013
    @cam 已加入todo list
    DaniloSam
        18
    DaniloSam  
       Aug 2, 2013   ❤️ 1
    @BeijingBaby

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

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

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

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

    http://bcs.duapp.com/picstore/JGSBdHAWsv.png
    turing
        42
    turing  
    OP
       Aug 14, 2013
    @pazz7ven 这个略奇怪了,去开个issue吧,把报错复制一下加上
    https://github.com/turingou/douban.fm/issues?state=open
    ymcdull
        43
    ymcdull  
       Nov 12, 2013
    不错,收藏下
    turing
        44
    turing  
    OP
       Nov 12, 2013
    douban.fm 0.0.7 发布,现已支持下载歌曲到本地,下一首播放(播放时按n),播放暂停(播放时按backspace)等功能
    hahabrother
        45
    hahabrother  
       Apr 11, 2014
    楼主还管理这里吗?
    发现一个新问题,可以解决吗?
    https://github.com/turingou/douban.fm/issues/91
    withrock
        46
    withrock  
       Feb 22, 2015
    不行了,安装了好久,一直卡在安装node-speaker上,不玩了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5726 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 107ms · UTC 01:39 · PVG 09:39 · LAX 18:39 · JFK 21:39
    ♥ Do have faith in what you're doing.