Last.fm music provider (#73)

This commit is contained in:
Raphaël Thériault
2021-01-22 15:40:38 -05:00
committed by GitHub
parent be806eaf94
commit 7ef8e65951
7 changed files with 151 additions and 2 deletions

View File

@@ -901,6 +901,13 @@ Finish the plugin setup by adding the following to your workflow:
</details>
<details>
<summary>Last.fm</summary>
This mode is not supported for now.
</details>
</details>
#### Recently played mode
@@ -994,6 +1001,37 @@ With your `client_id`, `client_secret` and `refresh_token` you can finish the pl
</details>
<details>
<summary>Last.fm</summary>
Obtain a Last.fm API key.
To do so, you can simply [create an API account](https://www.last.fm/api/account/create) or [use an existing one](https://www.last.fm/api/accounts).
Finish the plugin setup by adding the following to your workflow:
```yaml
- uses: lowlighter/metrics@latest
with:
# ... other options
plugin_music: yes
plugin_music_provider: lastfm
plugin_music_token: ${{ secrets.LASTFM_API_KEY }}
plugin_music_mode: recent
plugin_music_limit: 4
```
It is possible to use a different Last.fm username from your GitHub account by using `plugin_music_user` option.
Add the following to your workflow:
```yaml
- uses: lowlighter/metrics@latest
with:
# ... other options
plugin_music_user: ********
```
</details>
</details>
### 🈷️ Languages