douban.fm icon indicating copy to clipboard operation
douban.fm copied to clipboard

加强本地音乐管理功能 3 点

Open ZoomQuiet opened this issue 11 years ago • 19 comments

现象

@郭宇 #douban.fm# 用了才几天就已经这样儿了

zoomq @ MBP111216ZQ in ~/douban.fm
$ ls | wc
     704     704    8707

zoomq @ MBP111216ZQ in ~/douban.fm
$ du -hs ~/douban.fm
1.3G    /Users/zoomq/douban.fm

分析

因为 douban.fm 的随机播放机制,造成没有听个上万首很难重复?! 但是,本地空间是有限的哪,,,

提议

本地音乐优先

  • 分类型,目录存放
  • 俺切换频道,一定比例从本地优先播放了哪,,,

最大下载配置

  • 给个配置参数,可以设定最大文件数量
  • 然后再听就开始删除本地最不常听的...
  • 当时就不想听的, 提供 dd (删除)功能,
    • 从本地删除,
    • 同时,服务器再推荐过来直接忽略

最要命的指定默认目录

  • 以前有版本可以启动/配置 默认起点目录的哪?!
  • 怎么现在没有了?
  • 强烈建议:
    • douban.fm/.configs.json 迁移为 ~/.douban.fm.json
    • 增补一个参数: "default_path":"~/Music/douban.fm" 之类

ZoomQuiet avatar Jan 23 '14 12:01 ZoomQuiet

是也乎,是也乎, 不好意思想想,变成3点了,,,

ZoomQuiet avatar Jan 23 '14 12:01 ZoomQuiet

其实我挺好奇,豆瓣电台的音乐能不能这样存下来的。

zhuangya avatar Jan 27 '14 18:01 zhuangya

当然了! 网络不行时,俺就用 cmus 直接本地播放的!

Zoom.Quiet from N7108 2014-1-28 AM2:41于 "Ya Zhuang" [email protected]写道:

其实我挺好奇,豆瓣电台的音乐能不能这样存下来的。

— Reply to this email directly or view it on GitHubhttps://github.com/turingou/douban.fm/issues/60#issuecomment-33406193 .

ZoomQuiet avatar Jan 27 '14 23:01 ZoomQuiet

其实我说的是版权这类事情 @ZoomQuiet

zhuangya avatar Jan 28 '14 04:01 zhuangya

嗯嗯嗯,这事儿, 豆瓣已经解决了先的,,, 而且,我们不拿出去买是没有事儿的, 好比,你在 百代门外作生意,每天免费听了人家的广播,,,

2014-01-28 Ya Zhuang [email protected]

其实我说的是版权这类事情 @ZoomQuiet https://github.com/ZoomQuiet

— Reply to this email directly or view it on GitHubhttps://github.com/turingou/douban.fm/issues/60#issuecomment-33450336 .

人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦! KM keep growing environment culture which promoting organization be learnning! 俺: http://zoomquiet.io 许: http://creativecommons.org/licenses/by-sa/2.5/cn/

ZoomQuiet avatar Jan 28 '14 06:01 ZoomQuiet

哈哈,你们先聊。。我这两条在香港玩儿,这个功能要晚一些发布了。

guo-yu avatar Jan 28 '14 07:01 guo-yu

而且,我们不拿出去卖是没有事儿的,

内容都给用户了,这个事情不好保证的。。

zhuangya avatar Jan 28 '14 09:01 zhuangya

所以,要提高 douban.fm 的安装难度, 只有好人,安装的上,,,

2014-01-28 Ya Zhuang [email protected]

而且,我们不拿出去卖是没有事儿的,

内容都给用户了,这个事情不好保证的。。

— Reply to this email directly or view it on GitHubhttps://github.com/turingou/douban.fm/issues/60#issuecomment-33461445 .

人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦! KM keep growing environment culture which promoting organization be learnning! 俺: http://zoomquiet.io 许: http://creativecommons.org/licenses/by-sa/2.5/cn/

ZoomQuiet avatar Jan 28 '14 10:01 ZoomQuiet

这根本是俩事儿。。。

zhuangya avatar Jan 28 '14 14:01 zhuangya

下载管理这个,可以考虑设置最大歌曲数。达到最大歌曲数后,不再下载。

JacksonTian avatar Feb 14 '14 14:02 JacksonTian

0.1.3 已发布,新增以下功能:

  • 支持本地电台,网络通信失败时直接使用本地电台模式
  • 支持配置到指定下载目录 douban.fm home SOMEDIR 或者 douban.fm home 配置当前目录
  • 配置文件迁移到 ~/.douban.fm.profile
  • 支持补全部分 ID3 信息

guo-yu avatar Feb 25 '14 03:02 guo-yu

soooo great ! upgrade try them...

在 2014年2月25日 上午11:06,Guo Yu [email protected]写道:

0.1.2 已发布,新增以下功能:

  • 支持本地电台,网络通信失败时直接使用本地电台模式
  • 支持配置到指定下载目录 douban.fm home SOMEDIR 或者 douban.fm home 配置当前目录
  • 配置文件迁移到 ~/.douban.fm.profile
  • 支持补全部分 ID3 信息

— Reply to this email directly or view it on GitHubhttps://github.com/turingou/douban.fm/issues/60#issuecomment-35970327 .

人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦! KM keep growing environment culture which promoting organization be learnning! 俺: http://zoomquiet.io 许: http://creativecommons.org/licenses/by-sa/2.5/cn/

ZoomQuiet avatar Feb 25 '14 03:02 ZoomQuiet

[email protected] install /usr/local/share/npm/lib/node_modules/douban.fm/node_modules/player/node_modules/lame node-gyp rebuild

path.js:309 var path = (i >= 0) ? arguments[i] : process.cwd(); ^ Error: ENOENT, no such file or directory at Object.exports.resolve (path.js:309:52) at Function.Module._resolveLookupPaths (module.js:260:17) at Function.Module._resolveFilename (module.js:328:31) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/usr/local/Cellar/node/0.10.25/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:13:11) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is most likely a problem with the speaker package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls speaker npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.0.0 npm ERR! command "/usr/local/Cellar/node/0.10.25/bin/node" "/usr/local/bin/npm" "install" "douban.fm" "-g" npm ERR! cwd /Users/zoomq/Sites/2gitcafe.com/weekly.pychina.org npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.24 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/zoomq/Sites/2gitcafe.com/weekly.pychina.org/npm-debug.log npm ERR! not ok code 0

ZoomQuiet avatar Feb 25 '14 03:02 ZoomQuiet

@ZoomQuiet 升级到 0.1.3 时安装失败吗?

guo-yu avatar Feb 25 '14 03:02 guo-yu

@turingou 是也乎,是也乎,目测又是 node 升级失败引发的一系列失败

node-gyp rebuild

gyp http GET http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz gyp http 200 http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz

这儿已经等了半小时了,,,没有反应,,,

node 自己几乎每天都有升级,实在,,,

不用 sodo 直接来:

[email protected] /usr/local/share/npm/lib/node_modules/douban.fm

├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])

目测就好了

ZoomQuiet avatar Feb 25 '14 03:02 ZoomQuiet

zoomq @ MBP111216ZQ in ~/Music/douban.fm $ douban.fm home { [Error: ENOENT, open '/Users/zoomq/.douban.fm.profile.json'] errno: 34, code: 'ENOENT', path: '/Users/zoomq/.douban.fm.profile.json' }

ZoomQuiet avatar Feb 25 '14 03:02 ZoomQuiet

@ZoomQuiet 配置文件变更了,先 douban.fm config 再设置 home 目录,否则找不到配置文件的

guo-yu avatar Feb 25 '14 03:02 guo-yu

人肉

$ cp douban.fm/.configs.json ~/.douban.fm.profile.json

才可用,这点应该在文档中,或是出错提示中说明, 以便,首次升级后的小伙伴不知道,,,

ZoomQuiet avatar Feb 25 '14 03:02 ZoomQuiet

@ZoomQuiet 确实,我加一个判空

guo-yu avatar Feb 25 '14 03:02 guo-yu