-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
metadata.yml
131 lines (112 loc) · 3.35 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: 🎼 Music activity and suggestions
category: social
description: |
This plugin can display top and recently listened music tracks or titles from a random playlist.
Different music providers are supported.
disclaimer: |
This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with any of the supported provider.
All product and company names are trademarks™ or registered® trademarks of their respective holders.
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: 5
supports:
- user
- organization
scopes: []
inputs:
plugin_music:
description: |
Enable music plugin
type: boolean
default: no
extras:
- metrics.run.puppeteer.scrapping
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`](/source/plugins/music/README.md#plugin_music_mode) (provider will be auto-detected from [`plugin_music_playlist`](/source/plugins/music/README.md#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: ""
extras:
- metrics.api.music.any
plugin_music_user:
description: |
Music provider username
type: string
default: .user.login
preset: no
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`](/source/plugins/music/README.md#plugin_music_playlist) is specified, 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 - Last played timestamp
type: boolean
default: no
plugin_music_time_range:
description: |
Top tracks - Time range
- `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