forked from lowlighter/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.yml
116 lines (101 loc) · 2.81 KB
/
metadata.yml
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
name: "🎼 Music plugin"
category: social
description: |
This plugin can display top and recently listened music tracks or from a random playlist.
Different music providers are supported.
examples:
+random tracks from a playlist: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.music.playlist.svg
+recently listened: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.music.recent.svg
index: 2
supports:
- user
- organization
scopes: []
inputs:
plugin_music:
description: Enable music plugin
type: boolean
default: no
plugin_music_provider:
description: |
Music provider
- `apple`: Apple Music
- `spotify`: Spotify
- `lastfm`: Last.fm
- `youtube`: YouTube Music
This setting is optional when using `plugin_music_mode: playlist` (provider will be auto-detected from `plugin_music_playlist` URL)
type: string
default: ""
values:
- apple
- spotify
- lastfm
- youtube
plugin_music_token:
description: |
Music provider token
Below is the expected token format for each provider:
- `apple`: *(not supported)*
- `spotify`: "client_id, client_secret, refresh_token"
- `lastfm`: "api_key"
- `youtube`: "cookie"
type: token
default: ""
plugin_music_mode:
description: |
Display mode
- `playlist`: display random tracks from an URL playlist
- `recent`: display recently listened tracks
- `top`: display top listened artists/tracks
If `plugin_music_playlist` is specifed, the default value is `playlist`, else it is `recent`
type: string
default: ""
values:
- playlist
- recent
- top
plugin_music_playlist:
description: |
Playlist URL
It must be from an "embed url" (i.e. music player iframes that can be integrated in other websites)
type: string
default: ""
example: https://embed.music.apple.com/--/playlist/--------/--------
preset: no
plugin_music_limit:
description: Display limit
type: number
default: 4
min: 1
max: 100
plugin_music_played_at:
description: Recently played - Toggle last played timestamp display
type: boolean
default: no
plugin_music_time_range:
description: |
Top tracks - Time range for `top` mode
- `short`: 4 weeks
- `medium`: 6 months
- `long`: several years
type: string
default: short
values:
- short
- medium
- long
plugin_music_top_type:
description: |
Top tracks - Display type
- `tracks`: display track
- `artists`: display artists
type: string
default: tracks
values:
- tracks
- artists
plugin_music_user:
description: Music provider username
type: string
default: .user.login
preset: no