Skip to content

Commit a33929a

Browse files
committed
Updated generator attribute, fixed attrubte quoting, added comments
1 parent 55cfb5f commit a33929a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lastfmrss.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
// http://simplehtmldom.sourceforge.net/
44
require_once ('simple_html_dom.php');
55

6-
// Set the default Last.fm account to be used if no user is specified
6+
// Optionally set the default Last.fm username and real name
77
$user = '';
88

99
if (isset($_GET['user'])) {
1010
$user = urlencode ($_GET['user']);
1111
}
12+
13+
// Grab the HTML for the tracks
1214
if (isset($_GET['loved'])) {
1315
$type = 'loved';
1416
$html = file_get_html("http://www.last.fm/user/{$user}/loved?page=1");
@@ -33,7 +35,7 @@
3335
</description>
3436
<link>http://www.last.fm/user/<?php echo $user ?></link>
3537
<ttl>960</ttl>
36-
<generator>lastfmrss</generator>
38+
<generator>splo.me</generator>
3739
<category>Personal</category>
3840
<?php
3941

@@ -61,7 +63,7 @@
6163
<title><?php echo $artist.''.$title ?> </title>
6264
<pubDate><?php echo $playdate; ?></pubDate>
6365
<link>http://www.last.fm<?php echo $link ?></link>
64-
<guid isPermaLink='false'><?php echo $link ?></guid>
66+
<guid isPermaLink="false"><?php echo $link ?></guid>
6567
<description><![CDATA[<?php echo $desc?>]]></description>
6668
</item>
6769

0 commit comments

Comments
 (0)