splorp / lastfm-rss

Create a customizable RSS feed of Last.fm tracks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Last.fm RSS Generator

Generate an RSS feed of the recently played or loved tracks from your Last.fm account.

Requires PHP Simple HTML DOM Parser to reside in the same directory as lastfmrss.php file.

Based on a fork of Appie Verschoor’s lastfmrss.

Demonstration Feed

splo.me/lastfmrss-working.php?user=ghutchin

Future Work

  • Look into changing URI structure to use plain directory as end point: /lastfm/username
  • Perhaps /lastfm/username generates HTML, /lastfm/username/rss generates a feed
  • Change file name to index.php to accommodate above or handle via .htaccess rewrite
  • Determine how the above changes work with Kirby install
  • Remove duplicate text for artist, since it’s included with the track information
  • Add filtering modes or features via query string attributes, eg:
    • &mode=text - text of artist and track only
    • &mode=link - link to track page only
  • Add thumbnail size setting via query string attribute (PR #1), eg:
    • &size=300 - set the thumbnail size to 300x300 pixels
  • Better handling of passing a null username
  • Add atom:link with rel="self" per W3C Feed Validator recommendations

About

Create a customizable RSS feed of Last.fm tracks.


Languages

Language:PHP 100.0%