File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
// http://simplehtmldom.sourceforge.net/
4
4
require_once ('simple_html_dom.php ' );
5
5
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
7
7
$ user = '' ;
8
8
9
9
if (isset ($ _GET ['user ' ])) {
10
10
$ user = urlencode ($ _GET ['user ' ]);
11
11
}
12
+
13
+ // Grab the HTML for the tracks
12
14
if (isset ($ _GET ['loved ' ])) {
13
15
$ type = 'loved ' ;
14
16
$ html = file_get_html ("http://www.last.fm/user/ {$ user }/loved?page=1 " );
33
35
</description>
34
36
<link>http://www.last.fm/user/<?php echo $ user ?> </link>
35
37
<ttl>960</ttl>
36
- <generator>lastfmrss </generator>
38
+ <generator>splo.me </generator>
37
39
<category>Personal</category>
38
40
<?php
39
41
61
63
<title><?php echo $ artist .' — ' .$ title ?> </title>
62
64
<pubDate><?php echo $ playdate ; ?> </pubDate>
63
65
<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>
65
67
<description><![CDATA[<?php echo $ desc?> ]]></description>
66
68
</item>
67
69
You can’t perform that action at this time.
0 commit comments