douban_fm_hotkey 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +45 -1
- data/bin/{dfh_server → douban_fm_hotkey} +0 -0
- data/douban_fm_hotkey.gemspec +1 -0
- data/lib/douban_fm_hotkey/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 140daa8739cb64bc9cad0e90c0e85fd3036a6b71
|
4
|
+
data.tar.gz: 8bb05d0e7749108504f47628dcb72cce09e99849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44368c0595d77402154107b2870de76fb8030ae8ff9c6c9aad43dfb0747f943a4acbae35743433e1d7f1042ed1752f5618695e5456414891cbbb12c0c8d97b91
|
7
|
+
data.tar.gz: cfdafab1017238db656d5d7b9014ce4e1940d0aabca879a88898915615d30567ed34c190f80b10a5cbaf62568b8bd08d288596c33919787a4b472c8fe326cf68
|
data/README.md
CHANGED
@@ -1 +1,45 @@
|
|
1
|
-
# Douban FM
|
1
|
+
# Douban FM 全局快捷键
|
2
|
+
|
3
|
+
## 依赖
|
4
|
+
|
5
|
+
* ruby 1.9+
|
6
|
+
|
7
|
+
## 安装
|
8
|
+
|
9
|
+
### Server
|
10
|
+
|
11
|
+
```bash
|
12
|
+
$ gem i douban_fm_hotkey
|
13
|
+
```
|
14
|
+
### Chrome 扩展
|
15
|
+
|
16
|
+
https://dl.dropboxusercontent.com/u/1658623/douban_fm_hotkey.crx
|
17
|
+
|
18
|
+
= = Chrome web store developer account 验证中。。。
|
19
|
+
|
20
|
+
## 使用
|
21
|
+
|
22
|
+
### 启动 server
|
23
|
+
|
24
|
+
```bash
|
25
|
+
$ douban_fm_hotkey
|
26
|
+
```
|
27
|
+
|
28
|
+
### 设置快捷键
|
29
|
+
|
30
|
+
在你的系统里把你想要的快捷键分别映射到以下命令:
|
31
|
+
|
32
|
+
* `curl http://localhost:1988/skip` 下一首
|
33
|
+
* `curl http://localhost:1988/ban` 不再播放
|
34
|
+
* `curl http://localhost:1988/love` 喜欢
|
35
|
+
* `curl http://localhost:1988/pause` 暂停
|
36
|
+
|
37
|
+
具体每个系统的配置不大一样这里不详细说了。我的配置:
|
38
|
+
|
39
|
+
![Shortcuts](https://dl.dropboxusercontent.com/u/1658623/douban_fm_hotkey_shortcuts.png)
|
40
|
+
|
41
|
+
## 存在的问题
|
42
|
+
|
43
|
+
### 只有暂停没有播放
|
44
|
+
|
45
|
+
豆瓣电台的播放器只对外开放了暂停接口,所以没办法控制播放,但是在暂停后可以用下一首来让电台继续播放。
|
File without changes
|
data/douban_fm_hotkey.gemspec
CHANGED
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ['Wei Zhu']
|
9
9
|
s.email = 'yesmeck@gmail.com'
|
10
10
|
s.files = `git ls-files | grep -v '^chrome-extension/'`.split("\n")
|
11
|
+
s.executables << 'douban_fm_hotkey'
|
11
12
|
s.homepage = 'http://www.douban.com/people/coolzi'
|
12
13
|
s.add_dependency 'faye'
|
13
14
|
s.add_dependency 'sinatra'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: douban_fm_hotkey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wei Zhu
|
@@ -54,7 +54,8 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
description: Global hotkey for Douban FM web.
|
56
56
|
email: yesmeck@gmail.com
|
57
|
-
executables:
|
57
|
+
executables:
|
58
|
+
- douban_fm_hotkey
|
58
59
|
extensions: []
|
59
60
|
extra_rdoc_files: []
|
60
61
|
files:
|
@@ -63,7 +64,7 @@ files:
|
|
63
64
|
- Gemfile.lock
|
64
65
|
- README.md
|
65
66
|
- Rakefile
|
66
|
-
- bin/
|
67
|
+
- bin/douban_fm_hotkey
|
67
68
|
- douban_fm_hotkey.gemspec
|
68
69
|
- lib/douban_fm_hotkey/server.rb
|
69
70
|
- lib/douban_fm_hotkey/version.rb
|
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
87
|
version: '0'
|
87
88
|
requirements: []
|
88
89
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.0.
|
90
|
+
rubygems_version: 2.0.0
|
90
91
|
signing_key:
|
91
92
|
specification_version: 4
|
92
93
|
summary: Douban FM global hotkey.
|