This plugin allows you to show recent tracks and albums for a Last.fm account on your Kirby site
git submodule add https://github.com/mirthe/kirby_mylastfm site/plugins/mylastfm
Add your LastFM API key and username to your config
'lastfm.apiKey' => 'xxx',
'lastfm.username' => 'xxx',
Include one or more of the following snippets to display your recently played albums, tracks or favorite artists on a page
<?php snippet('lastfm-albums-played'); ?>
<?php snippet('lastfm-recenttracks'); ?>
<?php snippet('lastfm-topartists'); ?>
Recently added a compact listing for my Now page, with an optional limit
<?php snippet('lastfm-recenttracks-short', ['limit' => 3 ]) ?>
And an alternative version of this, using Wikipedia for band imgs. Handles ambiguity quite poorly, be warned.
<?php snippet('lastfm-recenttracks-imgs', ['limit' => 3 ]) ?>
- Add band photo to artist view, LastFM currently doesn't offer one
- Add translations for labels
- Offer as an official Kirby plugin
- Add sample SCSS to this readme
- Cleanup code
- Lots..