-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
128 lines (124 loc) · 3.83 KB
/
plugin.json
File metadata and controls
128 lines (124 loc) · 3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"$schema": "https://raw.githubusercontent.com/yoki-run/yoki/main/plugin.schema.json",
"name": "Spotify",
"keyword": "sp",
"icon": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'><path fill='#1ed760' d='M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8Z'/><path d='M406.6 231.1c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3zm-31 76.2c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm-26.9 65.6c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4z'/></svg>",
"description": "Control Spotify from Yoki — play, search, switch devices",
"version": "1.4.0",
"author": "Yoki",
"homepage": "https://yoki.run",
"license": "MIT",
"categories": ["media"],
"yoki_min": "1.0.4.0",
"protocol": "v2",
"permissions": {
"network": ["api.spotify.com", "accounts.spotify.com"],
"filesystem": ["read:./data", "write:./data"],
"notifications": true
},
"credentials": {
"slug": "spotify",
"service": "spotify",
"keys": ["client_id"]
},
"commands": [
{
"name": "now",
"title": "Now Playing",
"description": "Show what's playing right now",
"mode": "detail",
"exec": "now_playing.js",
"refresh": 5000
},
{
"name": "play",
"title": "Play / Resume",
"mode": "background",
"exec": "playback.js",
"keywords": ["play"],
"takes_query": true
},
{
"name": "pause",
"title": "Pause",
"mode": "background",
"exec": "playback.js",
"keywords": ["pause", "stop"]
},
{
"name": "next",
"title": "Next track",
"mode": "background",
"exec": "playback.js",
"keywords": ["next", "skip", "n"]
},
{
"name": "prev",
"title": "Previous track",
"mode": "background",
"exec": "playback.js",
"keywords": ["prev", "previous", "back", "p"]
},
{
"name": "vol",
"title": "Set volume",
"mode": "background",
"exec": "playback.js",
"keywords": ["vol", "volume", "v"],
"takes_query": true
},
{
"name": "shuffle",
"title": "Toggle shuffle",
"mode": "background",
"exec": "playback.js",
"keywords": ["shuffle", "sh"]
},
{
"name": "like",
"title": "Toggle like for current track",
"mode": "background",
"exec": "playback.js",
"keywords": ["like", "love", "fav"]
},
{
"name": "unlike",
"title": "Remove from liked",
"mode": "background",
"exec": "playback.js",
"keywords": ["unlike", "unfav"]
},
{
"name": "search",
"title": "Search tracks",
"mode": "list",
"exec": "search.js",
"keywords": ["search", "find", "s"],
"takes_query": true,
"timeout": 8000
},
{
"name": "devices",
"title": "Devices",
"mode": "list",
"exec": "devices.js",
"keywords": ["devices", "device", "d"]
},
{
"name": "playlists",
"title": "Playlists",
"mode": "list",
"exec": "playlists.js",
"keywords": ["playlists", "playlist", "pl", "lists"]
},
{
"name": "setup",
"title": "Authenticate with Spotify",
"mode": "background",
"exec": "setup.js",
"keywords": ["setup", "auth", "login"],
"takes_query": true,
"timeout": 120000
}
]
}